Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-16 23:59:03.152591
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 17072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 18072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22072025
  port_id : 25155784
  datou_current_id : 3316370
in upload_from_sqlite, uploading in 25155784
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250717 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250718 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250719 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250720 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250721 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250722 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/22072025/17/52/image_22072025_17_53_05_10093.jpg', 2), ('/mnt/data/22072025/17/47/image_22072025_17_47_45_10082.jpg', 2), ('/mnt/data/22072025/17/33/image_22072025_17_34_04_8963.jpg', 2), ('/mnt/data/22072025/17/33/image_22072025_17_33_45_10011.jpg', 2), ('/mnt/data/22072025/17/33/image_22072025_17_33_35_9990.jpg', 2), ('/mnt/data/22072025/17/33/image_22072025_17_33_25_10218.jpg', 2)]
port id,  25155784
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/22072025/17/52/image_22072025_17_53_05_10093.jpg', '/mnt/data/22072025/17/47/image_22072025_17_47_45_10082.jpg', '/mnt/data/22072025/17/33/image_22072025_17_34_04_8963.jpg', '/mnt/data/22072025/17/33/image_22072025_17_33_45_10011.jpg', '/mnt/data/22072025/17/33/image_22072025_17_33_35_9990.jpg', '/mnt/data/22072025/17/33/image_22072025_17_33_25_10218.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/22072025/17/52/image_22072025_17_53_05_10093.jpg', '/mnt/data/22072025/17/47/image_22072025_17_47_45_10082.jpg', '/mnt/data/22072025/17/33/image_22072025_17_34_04_8963.jpg', '/mnt/data/22072025/17/33/image_22072025_17_33_45_10011.jpg', '/mnt/data/22072025/17/33/image_22072025_17_33_35_9990.jpg', '/mnt/data/22072025/17/33/image_22072025_17_33_25_10218.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3316370&datou=0
/mnt/data/22072025/17/52/image_22072025_17_53_05_10093.jpg
/mnt/data/22072025/17/47/image_22072025_17_47_45_10082.jpg
/mnt/data/22072025/17/33/image_22072025_17_34_04_8963.jpg
/mnt/data/22072025/17/33/image_22072025_17_33_45_10011.jpg
/mnt/data/22072025/17/33/image_22072025_17_33_35_9990.jpg
/mnt/data/22072025/17/33/image_22072025_17_33_25_10218.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.321501970291138 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3316370&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7adbc208>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-16 23:59:38.490854
in upload_from_sqlite, uploading in 25932664
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.83263325691223 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/13082025/00/45/image_13082025_00_45_45_10130.jpg', 2), ('/mnt/data/13082025/00/46/image_13082025_00_46_54_9711.jpg', 2), ('/mnt/data/13082025/00/46/image_13082025_00_47_04_10134.jpg', 2), ('/mnt/data/13082025/00/47/image_13082025_00_47_14_10116.jpg', 2), ('/mnt/data/13082025/00/47/image_13082025_00_47_24_10250.jpg', 2), ('/mnt/data/13082025/00/47/image_13082025_00_47_35_10119.jpg', 2)]
port id,  25932664
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/13082025/00/45/image_13082025_00_45_45_10130.jpg', '/mnt/data/13082025/00/46/image_13082025_00_46_54_9711.jpg', '/mnt/data/13082025/00/46/image_13082025_00_47_04_10134.jpg', '/mnt/data/13082025/00/47/image_13082025_00_47_14_10116.jpg', '/mnt/data/13082025/00/47/image_13082025_00_47_24_10250.jpg', '/mnt/data/13082025/00/47/image_13082025_00_47_35_10119.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3517368&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f79199550>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:00:14.547105
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e69a908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:01:25.994569
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/01/image_17082025_00_01_35_10793.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f992f5908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:02:38.125586
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8fd2898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:03:50.281669
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1456860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 00:05:03.246372
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_24_9089.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_15_10478.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_04_05_10391.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_03_35_10324.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7c8d908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:06:13.943412
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/06/image_17082025_00_06_34_8963.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_25_10487.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87d39908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:07:26.008809
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/07/image_17082025_00_07_35_10290.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_25_10279.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_14_9042.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_07_05_10275.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_55_10352.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_34_8963.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0e39908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:08:38.136464
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1ebe828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:09:50.284814
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76d35860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 00:11:03.148031
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_09_05_10215.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_08_45_9838.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87be5978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:12:14.840576
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94397908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:13:25.897384
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf1a7908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:14:38.072432
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb36f9898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:15:50.228205
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f832467f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 00:17:03.040376
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/00/16/image_17082025_00_16_45_10192.jpg', 2), ('/mnt/data/17082025/00/16/image_17082025_00_16_15_10258.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2268978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:18:14.770097
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/18/image_17082025_00_18_15_10253.jpg', 2), ('/mnt/data/17082025/00/17/image_17082025_00_17_45_10187.jpg', 2), ('/mnt/data/17082025/00/16/image_17082025_00_16_55_10196.jpg', 2), ('/mnt/data/17082025/00/16/image_17082025_00_16_45_10192.jpg', 2), ('/mnt/data/17082025/00/16/image_17082025_00_16_15_10258.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ff80908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:19:25.889562
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/18/image_17082025_00_18_25_10230.jpg', 2), ('/mnt/data/17082025/00/18/image_17082025_00_18_15_10253.jpg', 2), ('/mnt/data/17082025/00/17/image_17082025_00_17_45_10187.jpg', 2), ('/mnt/data/17082025/00/16/image_17082025_00_16_55_10196.jpg', 2), ('/mnt/data/17082025/00/16/image_17082025_00_16_45_10192.jpg', 2), ('/mnt/data/17082025/00/16/image_17082025_00_16_15_10258.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa161a908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:20:37.959271
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae6ac898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:21:50.273537
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab9c2860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 00:23:05.380948
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/00/20/image_17082025_00_21_05_10223.jpg', 2), ('/mnt/data/17082025/00/20/image_17082025_00_20_54_10185.jpg', 2), ('/mnt/data/17082025/00/20/image_17082025_00_20_35_10191.jpg', 2), ('/mnt/data/17082025/00/20/image_17082025_00_20_25_10181.jpg', 2), ('/mnt/data/17082025/00/20/image_17082025_00_20_15_10033.jpg', 2), ('/mnt/data/17082025/00/19/image_17082025_00_19_54_10207.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f981c8978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:24:14.665649
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/24/image_17082025_00_24_45_10170.jpg', 2), ('/mnt/data/17082025/00/22/image_17082025_00_22_34_9009.jpg', 2), ('/mnt/data/17082025/00/20/image_17082025_00_21_05_10223.jpg', 2), ('/mnt/data/17082025/00/20/image_17082025_00_20_54_10185.jpg', 2), ('/mnt/data/17082025/00/20/image_17082025_00_20_35_10191.jpg', 2), ('/mnt/data/17082025/00/20/image_17082025_00_20_25_10181.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76e8f908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:25:25.863155
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/24/image_17082025_00_24_55_10176.jpg', 2), ('/mnt/data/17082025/00/24/image_17082025_00_24_45_10170.jpg', 2), ('/mnt/data/17082025/00/22/image_17082025_00_22_34_9009.jpg', 2), ('/mnt/data/17082025/00/20/image_17082025_00_21_05_10223.jpg', 2), ('/mnt/data/17082025/00/20/image_17082025_00_20_54_10185.jpg', 2), ('/mnt/data/17082025/00/20/image_17082025_00_20_35_10191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98e71908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:26:37.980141
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fd7e828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:27:50.449211
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 00:28:02.746888
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/00/27/image_17082025_00_27_14_10204.jpg', 2), ('/mnt/data/17082025/00/26/image_17082025_00_26_35_10190.jpg', 2), ('/mnt/data/17082025/00/24/image_17082025_00_25_04_9188.jpg', 2), ('/mnt/data/17082025/00/24/image_17082025_00_24_55_10176.jpg', 2), ('/mnt/data/17082025/00/24/image_17082025_00_24_45_10170.jpg', 2), ('/mnt/data/17082025/00/22/image_17082025_00_22_34_9009.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90970978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:29:16.351554
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/29/image_17082025_00_29_45_10243.jpg', 2), ('/mnt/data/17082025/00/29/image_17082025_00_29_24_10230.jpg', 2), ('/mnt/data/17082025/00/28/image_17082025_00_29_05_10415.jpg', 2), ('/mnt/data/17082025/00/28/image_17082025_00_28_45_10257.jpg', 2), ('/mnt/data/17082025/00/28/image_17082025_00_28_34_9006.jpg', 2), ('/mnt/data/17082025/00/27/image_17082025_00_27_25_10179.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa086c898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:30:26.162219
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/29/image_17082025_00_30_04_9108.jpg', 2), ('/mnt/data/17082025/00/29/image_17082025_00_29_55_10271.jpg', 2), ('/mnt/data/17082025/00/29/image_17082025_00_29_45_10243.jpg', 2), ('/mnt/data/17082025/00/29/image_17082025_00_29_24_10230.jpg', 2), ('/mnt/data/17082025/00/28/image_17082025_00_29_05_10415.jpg', 2), ('/mnt/data/17082025/00/28/image_17082025_00_28_45_10257.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faac16908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:31:38.352516
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82876828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:32:50.584741
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa40c7860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 00:34:03.093711
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/00/33/image_17082025_00_33_15_10222.jpg', 2), ('/mnt/data/17082025/00/32/image_17082025_00_33_04_9127.jpg', 2), ('/mnt/data/17082025/00/32/image_17082025_00_32_45_10390.jpg', 2), ('/mnt/data/17082025/00/32/image_17082025_00_32_35_10273.jpg', 2), ('/mnt/data/17082025/00/32/image_17082025_00_32_24_9003.jpg', 2), ('/mnt/data/17082025/00/31/image_17082025_00_31_55_10251.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b99c978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:35:14.724398
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/35/image_17082025_00_35_35_10239.jpg', 2), ('/mnt/data/17082025/00/35/image_17082025_00_35_24_9017.jpg', 2), ('/mnt/data/17082025/00/35/image_17082025_00_35_15_10259.jpg', 2), ('/mnt/data/17082025/00/34/image_17082025_00_35_05_10243.jpg', 2), ('/mnt/data/17082025/00/33/image_17082025_00_34_05_10267.jpg', 2), ('/mnt/data/17082025/00/33/image_17082025_00_33_55_9236.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f932ef908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:36:25.924859
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/36/image_17082025_00_36_45_10250.jpg', 2), ('/mnt/data/17082025/00/36/image_17082025_00_36_35_10267.jpg', 2), ('/mnt/data/17082025/00/35/image_17082025_00_35_45_10236.jpg', 2), ('/mnt/data/17082025/00/35/image_17082025_00_35_35_10239.jpg', 2), ('/mnt/data/17082025/00/35/image_17082025_00_35_24_9017.jpg', 2), ('/mnt/data/17082025/00/35/image_17082025_00_35_15_10259.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf9d8898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:37:38.076693
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82497898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:38:50.231083
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f908b4860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:39:38.359077
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90913898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:40:50.529499
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ebcc860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 00:42:02.465032
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/00/41/image_17082025_00_41_14_9052.jpg', 2), ('/mnt/data/17082025/00/40/image_17082025_00_40_55_10209.jpg', 2), ('/mnt/data/17082025/00/39/image_17082025_00_39_55_10201.jpg', 2), ('/mnt/data/17082025/00/39/image_17082025_00_39_44_8993.jpg', 2), ('/mnt/data/17082025/00/39/image_17082025_00_39_25_10210.jpg', 2), ('/mnt/data/17082025/00/39/image_17082025_00_39_15_10241.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1d05908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:43:14.155557
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/42/image_17082025_00_43_05_10310.jpg', 2), ('/mnt/data/17082025/00/42/image_17082025_00_42_55_10255.jpg', 2), ('/mnt/data/17082025/00/42/image_17082025_00_42_34_8991.jpg', 2), ('/mnt/data/17082025/00/41/image_17082025_00_41_44_10202.jpg', 2), ('/mnt/data/17082025/00/41/image_17082025_00_41_14_9052.jpg', 2), ('/mnt/data/17082025/00/40/image_17082025_00_40_55_10209.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7f56908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:44:26.481581
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/44/image_17082025_00_44_14_9065.jpg', 2), ('/mnt/data/17082025/00/43/image_17082025_00_43_24_8988.jpg', 2), ('/mnt/data/17082025/00/42/image_17082025_00_43_05_10310.jpg', 2), ('/mnt/data/17082025/00/42/image_17082025_00_42_55_10255.jpg', 2), ('/mnt/data/17082025/00/42/image_17082025_00_42_34_8991.jpg', 2), ('/mnt/data/17082025/00/41/image_17082025_00_41_44_10202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89fad908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:45:38.629258
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93c18898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:46:50.027334
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dc2e860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 00:48:02.771863
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/00/45/image_17082025_00_45_54_8991.jpg', 2), ('/mnt/data/17082025/00/44/image_17082025_00_45_04_9066.jpg', 2), ('/mnt/data/17082025/00/44/image_17082025_00_44_55_10217.jpg', 2), ('/mnt/data/17082025/00/44/image_17082025_00_44_14_9065.jpg', 2), ('/mnt/data/17082025/00/43/image_17082025_00_43_24_8988.jpg', 2), ('/mnt/data/17082025/00/42/image_17082025_00_43_05_10310.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f919a5978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:49:14.479718
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/49/image_17082025_00_49_25_9857.jpg', 2), ('/mnt/data/17082025/00/49/image_17082025_00_49_15_10275.jpg', 2), ('/mnt/data/17082025/00/45/image_17082025_00_46_05_10334.jpg', 2), ('/mnt/data/17082025/00/45/image_17082025_00_45_54_8991.jpg', 2), ('/mnt/data/17082025/00/44/image_17082025_00_45_04_9066.jpg', 2), ('/mnt/data/17082025/00/44/image_17082025_00_44_55_10217.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3c79908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:50:26.586388
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/50/image_17082025_00_50_15_10258.jpg', 2), ('/mnt/data/17082025/00/49/image_17082025_00_49_35_10646.jpg', 2), ('/mnt/data/17082025/00/49/image_17082025_00_49_25_9857.jpg', 2), ('/mnt/data/17082025/00/49/image_17082025_00_49_15_10275.jpg', 2), ('/mnt/data/17082025/00/45/image_17082025_00_46_05_10334.jpg', 2), ('/mnt/data/17082025/00/45/image_17082025_00_45_54_8991.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f865ea908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:51:38.662467
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad963898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:52:49.846566
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3626860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 00:54:02.591609
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/00/53/image_17082025_00_53_34_10182.jpg', 2), ('/mnt/data/17082025/00/52/image_17082025_00_53_05_10239.jpg', 2), ('/mnt/data/17082025/00/52/image_17082025_00_52_55_10183.jpg', 2), ('/mnt/data/17082025/00/52/image_17082025_00_52_35_10252.jpg', 2), ('/mnt/data/17082025/00/52/image_17082025_00_52_15_10275.jpg', 2), ('/mnt/data/17082025/00/51/image_17082025_00_51_55_10234.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78573978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:54:50.201599
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88b6f860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 00:56:02.823360
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/00/55/image_17082025_00_55_35_10178.jpg', 2), ('/mnt/data/17082025/00/55/image_17082025_00_55_15_10258.jpg', 2), ('/mnt/data/17082025/00/54/image_17082025_00_54_55_10216.jpg', 2), ('/mnt/data/17082025/00/54/image_17082025_00_54_35_10244.jpg', 2), ('/mnt/data/17082025/00/54/image_17082025_00_54_25_10221.jpg', 2), ('/mnt/data/17082025/00/54/image_17082025_00_54_14_8971.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ebd6978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 00:57:14.622647
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 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 www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 00:59:02.673623
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/00/56/image_17082025_00_56_15_10280.jpg', 2), ('/mnt/data/17082025/00/55/image_17082025_00_56_05_9158.jpg', 2), ('/mnt/data/17082025/00/55/image_17082025_00_55_55_10201.jpg', 2), ('/mnt/data/17082025/00/55/image_17082025_00_55_35_10178.jpg', 2), ('/mnt/data/17082025/00/55/image_17082025_00_55_15_10258.jpg', 2), ('/mnt/data/17082025/00/54/image_17082025_00_54_55_10216.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8678d978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:00:14.261385
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/01/00/image_17082025_01_00_15_10310.jpg', 2), ('/mnt/data/17082025/00/59/image_17082025_00_59_54_9050.jpg', 2), ('/mnt/data/17082025/00/59/image_17082025_00_59_35_10260.jpg', 2), ('/mnt/data/17082025/00/59/image_17082025_00_59_25_10501.jpg', 2), ('/mnt/data/17082025/00/56/image_17082025_00_56_25_10201.jpg', 2), ('/mnt/data/17082025/00/56/image_17082025_00_56_15_10280.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97d97908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:01:26.382047
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/01/01/image_17082025_01_01_34_10207.jpg', 2), ('/mnt/data/17082025/01/01/image_17082025_01_01_15_10274.jpg', 2), ('/mnt/data/17082025/01/00/image_17082025_01_00_35_10223.jpg', 2), ('/mnt/data/17082025/01/00/image_17082025_01_00_15_10310.jpg', 2), ('/mnt/data/17082025/00/59/image_17082025_00_59_54_9050.jpg', 2), ('/mnt/data/17082025/00/59/image_17082025_00_59_35_10260.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faafdd908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:02:38.481736
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0040898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:03:50.630033
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3180860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 01:05:02.565528
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/01/03/image_17082025_01_04_05_10329.jpg', 2), ('/mnt/data/17082025/01/03/image_17082025_01_03_44_9009.jpg', 2), ('/mnt/data/17082025/01/03/image_17082025_01_03_35_10240.jpg', 2), ('/mnt/data/17082025/01/03/image_17082025_01_03_25_10228.jpg', 2), ('/mnt/data/17082025/01/02/image_17082025_01_02_35_10215.jpg', 2), ('/mnt/data/17082025/01/02/image_17082025_01_02_25_10295.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9beed9b0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:06:14.155745
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/01/06/image_17082025_01_06_35_10299.jpg', 2), ('/mnt/data/17082025/01/06/image_17082025_01_06_24_9062.jpg', 2), ('/mnt/data/17082025/01/05/image_17082025_01_05_54_9043.jpg', 2), ('/mnt/data/17082025/01/04/image_17082025_01_04_35_10256.jpg', 2), ('/mnt/data/17082025/01/03/image_17082025_01_04_05_10329.jpg', 2), ('/mnt/data/17082025/01/03/image_17082025_01_03_44_9009.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fc49908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:07:26.256971
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/01/06/image_17082025_01_07_05_10270.jpg', 2), ('/mnt/data/17082025/01/06/image_17082025_01_06_55_10288.jpg', 2), ('/mnt/data/17082025/01/06/image_17082025_01_06_35_10299.jpg', 2), ('/mnt/data/17082025/01/06/image_17082025_01_06_24_9062.jpg', 2), ('/mnt/data/17082025/01/05/image_17082025_01_05_54_9043.jpg', 2), ('/mnt/data/17082025/01/04/image_17082025_01_04_35_10256.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadd78908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:08:38.315210
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4a2d828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:09:50.469188
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa609e860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 01:11:03.273792
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/01/10/image_17082025_01_10_45_10313.jpg', 2), ('/mnt/data/17082025/01/09/image_17082025_01_10_05_10379.jpg', 2), ('/mnt/data/17082025/01/09/image_17082025_01_09_35_10264.jpg', 2), ('/mnt/data/17082025/01/08/image_17082025_01_09_05_10442.jpg', 2), ('/mnt/data/17082025/01/08/image_17082025_01_08_34_9031.jpg', 2), ('/mnt/data/17082025/01/08/image_17082025_01_08_25_10283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f177978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:12:14.049191
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/01/12/image_17082025_01_12_34_9065.jpg', 2), ('/mnt/data/17082025/01/12/image_17082025_01_12_25_10268.jpg', 2), ('/mnt/data/17082025/01/12/image_17082025_01_12_15_10298.jpg', 2), ('/mnt/data/17082025/01/11/image_17082025_01_12_05_10574.jpg', 2), ('/mnt/data/17082025/01/11/image_17082025_01_11_54_9061.jpg', 2), ('/mnt/data/17082025/01/11/image_17082025_01_11_45_10254.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4446940>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:13:26.046094
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/01/13/image_17082025_01_13_14_9071.jpg', 2), ('/mnt/data/17082025/01/12/image_17082025_01_12_34_9065.jpg', 2), ('/mnt/data/17082025/01/12/image_17082025_01_12_25_10268.jpg', 2), ('/mnt/data/17082025/01/12/image_17082025_01_12_15_10298.jpg', 2), ('/mnt/data/17082025/01/11/image_17082025_01_12_05_10574.jpg', 2), ('/mnt/data/17082025/01/11/image_17082025_01_11_54_9061.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9abb8908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:14:38.193104
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa775a828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:15:50.291833
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f888d4860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 01:17:03.181732
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/01/16/image_17082025_01_16_25_10264.jpg', 2), ('/mnt/data/17082025/01/15/image_17082025_01_15_55_10305.jpg', 2), ('/mnt/data/17082025/01/15/image_17082025_01_15_45_10299.jpg', 2), ('/mnt/data/17082025/01/14/image_17082025_01_15_05_10444.jpg', 2), ('/mnt/data/17082025/01/14/image_17082025_01_14_44_9047.jpg', 2), ('/mnt/data/17082025/01/14/image_17082025_01_14_25_10238.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96071978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:18:14.748210
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/01/18/image_17082025_01_18_25_10244.jpg', 2), ('/mnt/data/17082025/01/18/image_17082025_01_18_14_9071.jpg', 2), ('/mnt/data/17082025/01/17/image_17082025_01_18_05_10307.jpg', 2), ('/mnt/data/17082025/01/17/image_17082025_01_17_55_10236.jpg', 2), ('/mnt/data/17082025/01/17/image_17082025_01_17_24_9034.jpg', 2), ('/mnt/data/17082025/01/16/image_17082025_01_16_55_10268.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91e06908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:19:26.023816
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/01/19/image_17082025_01_19_35_10252.jpg', 2), ('/mnt/data/17082025/01/19/image_17082025_01_19_25_10240.jpg', 2), ('/mnt/data/17082025/01/19/image_17082025_01_19_15_10306.jpg', 2), ('/mnt/data/17082025/01/18/image_17082025_01_19_05_10335.jpg', 2), ('/mnt/data/17082025/01/18/image_17082025_01_18_35_10263.jpg', 2), ('/mnt/data/17082025/01/18/image_17082025_01_18_25_10244.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dc06908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:20:38.066711
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae839898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:21:51.061061
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e0e0860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 01:23:02.869517
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/01/22/image_17082025_01_22_25_10296.jpg', 2), ('/mnt/data/17082025/01/21/image_17082025_01_22_04_9081.jpg', 2), ('/mnt/data/17082025/01/21/image_17082025_01_21_25_10306.jpg', 2), ('/mnt/data/17082025/01/20/image_17082025_01_21_05_10351.jpg', 2), ('/mnt/data/17082025/01/20/image_17082025_01_20_45_9779.jpg', 2), ('/mnt/data/17082025/01/20/image_17082025_01_20_14_9063.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84ab6908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:24:14.623459
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/01/22/image_17082025_01_22_25_10296.jpg', 2), ('/mnt/data/17082025/01/22/image_17082025_01_22_15_10354.jpg', 2), ('/mnt/data/17082025/01/21/image_17082025_01_22_04_9081.jpg', 2), ('/mnt/data/17082025/01/21/image_17082025_01_21_25_10306.jpg', 2), ('/mnt/data/17082025/01/20/image_17082025_01_21_05_10351.jpg', 2), ('/mnt/data/17082025/01/20/image_17082025_01_20_45_9779.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ab00908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:25:26.700352
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/01/25/image_17082025_01_25_34_9016.jpg', 2), ('/mnt/data/17082025/01/25/image_17082025_01_25_15_10280.jpg', 2), ('/mnt/data/17082025/01/24/image_17082025_01_24_54_9018.jpg', 2), ('/mnt/data/17082025/01/22/image_17082025_01_22_25_10296.jpg', 2), ('/mnt/data/17082025/01/22/image_17082025_01_22_15_10354.jpg', 2), ('/mnt/data/17082025/01/21/image_17082025_01_22_04_9081.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76a09908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:26:37.999033
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85c92898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:27:50.126837
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 01:28:02.680974
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/01/27/image_17082025_01_27_44_9036.jpg', 2), ('/mnt/data/17082025/01/27/image_17082025_01_27_35_10246.jpg', 2), ('/mnt/data/17082025/01/27/image_17082025_01_27_15_10239.jpg', 2), ('/mnt/data/17082025/01/26/image_17082025_01_27_04_9042.jpg', 2), ('/mnt/data/17082025/01/26/image_17082025_01_26_55_10265.jpg', 2), ('/mnt/data/17082025/01/26/image_17082025_01_26_45_10308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5de6978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:29:14.503381
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/01/27/image_17082025_01_27_55_10224.jpg', 2), ('/mnt/data/17082025/01/27/image_17082025_01_27_44_9036.jpg', 2), ('/mnt/data/17082025/01/27/image_17082025_01_27_35_10246.jpg', 2), ('/mnt/data/17082025/01/27/image_17082025_01_27_15_10239.jpg', 2), ('/mnt/data/17082025/01/26/image_17082025_01_27_04_9042.jpg', 2), ('/mnt/data/17082025/01/26/image_17082025_01_26_55_10265.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae4ea908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:30:26.589280
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/01/28/image_17082025_01_28_35_10233.jpg', 2), ('/mnt/data/17082025/01/27/image_17082025_01_27_55_10224.jpg', 2), ('/mnt/data/17082025/01/27/image_17082025_01_27_44_9036.jpg', 2), ('/mnt/data/17082025/01/27/image_17082025_01_27_35_10246.jpg', 2), ('/mnt/data/17082025/01/27/image_17082025_01_27_15_10239.jpg', 2), ('/mnt/data/17082025/01/26/image_17082025_01_27_04_9042.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9f57908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:31:38.710599
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac00f828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:32:49.882947
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dabc860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 01:34:02.748261
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/01/33/image_17082025_01_33_25_10253.jpg', 2), ('/mnt/data/17082025/01/32/image_17082025_01_33_04_9033.jpg', 2), ('/mnt/data/17082025/01/32/image_17082025_01_32_35_10234.jpg', 2), ('/mnt/data/17082025/01/32/image_17082025_01_32_15_10309.jpg', 2), ('/mnt/data/17082025/01/31/image_17082025_01_32_05_10253.jpg', 2), ('/mnt/data/17082025/01/31/image_17082025_01_31_34_9067.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9aedd978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:35:14.313388
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/01/35/image_17082025_01_35_44_9028.jpg', 2), ('/mnt/data/17082025/01/35/image_17082025_01_35_25_10223.jpg', 2), ('/mnt/data/17082025/01/35/image_17082025_01_35_15_10376.jpg', 2), ('/mnt/data/17082025/01/34/image_17082025_01_34_25_10346.jpg', 2), ('/mnt/data/17082025/01/33/image_17082025_01_33_45_10207.jpg', 2), ('/mnt/data/17082025/01/33/image_17082025_01_33_25_10253.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91dcb908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:36:26.435236
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/01/35/image_17082025_01_35_55_10254.jpg', 2), ('/mnt/data/17082025/01/35/image_17082025_01_35_44_9028.jpg', 2), ('/mnt/data/17082025/01/35/image_17082025_01_35_25_10223.jpg', 2), ('/mnt/data/17082025/01/35/image_17082025_01_35_15_10376.jpg', 2), ('/mnt/data/17082025/01/34/image_17082025_01_34_25_10346.jpg', 2), ('/mnt/data/17082025/01/33/image_17082025_01_33_45_10207.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a32f908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:37:38.605730
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87a0e828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:38:50.704506
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9007e860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 01:40:02.410348
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/01/39/image_17082025_01_39_44_9027.jpg', 2), ('/mnt/data/17082025/01/39/image_17082025_01_39_25_10301.jpg', 2), ('/mnt/data/17082025/01/39/image_17082025_01_39_15_10333.jpg', 2), ('/mnt/data/17082025/01/38/image_17082025_01_38_24_9023.jpg', 2), ('/mnt/data/17082025/01/38/image_17082025_01_38_15_10299.jpg', 2), ('/mnt/data/17082025/01/37/image_17082025_01_37_34_9030.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb240e978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:41:14.269131
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/01/40/image_17082025_01_41_04_9052.jpg', 2), ('/mnt/data/17082025/01/40/image_17082025_01_40_45_10298.jpg', 2), ('/mnt/data/17082025/01/40/image_17082025_01_40_35_10294.jpg', 2), ('/mnt/data/17082025/01/40/image_17082025_01_40_15_10329.jpg', 2), ('/mnt/data/17082025/01/39/image_17082025_01_39_54_10246.jpg', 2), ('/mnt/data/17082025/01/39/image_17082025_01_39_44_9027.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97209908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:42:26.047304
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/01/41/image_17082025_01_42_05_10574.jpg', 2), ('/mnt/data/17082025/01/41/image_17082025_01_41_35_10240.jpg', 2), ('/mnt/data/17082025/01/40/image_17082025_01_41_04_9052.jpg', 2), ('/mnt/data/17082025/01/40/image_17082025_01_40_45_10298.jpg', 2), ('/mnt/data/17082025/01/40/image_17082025_01_40_35_10294.jpg', 2), ('/mnt/data/17082025/01/40/image_17082025_01_40_15_10329.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dc80908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:43:39.403148
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86853898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:44:50.525785
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fcab860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 01:46:03.169965
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/01/45/image_17082025_01_45_34_9060.jpg', 2), ('/mnt/data/17082025/01/45/image_17082025_01_45_25_10271.jpg', 2), ('/mnt/data/17082025/01/44/image_17082025_01_44_45_10234.jpg', 2), ('/mnt/data/17082025/01/44/image_17082025_01_44_35_10242.jpg', 2), ('/mnt/data/17082025/01/44/image_17082025_01_44_25_10301.jpg', 2), ('/mnt/data/17082025/01/44/image_17082025_01_44_14_9844.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97af2978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:47:14.000028
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/01/47/image_17082025_01_47_25_10317.jpg', 2), ('/mnt/data/17082025/01/47/image_17082025_01_47_15_10484.jpg', 2), ('/mnt/data/17082025/01/46/image_17082025_01_47_05_9372.jpg', 2), ('/mnt/data/17082025/01/46/image_17082025_01_46_45_10249.jpg', 2), ('/mnt/data/17082025/01/46/image_17082025_01_46_35_10248.jpg', 2), ('/mnt/data/17082025/01/46/image_17082025_01_46_24_9014.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91af1908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:48:26.091785
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/01/48/image_17082025_01_48_45_10273.jpg', 2), ('/mnt/data/17082025/01/47/image_17082025_01_48_05_10390.jpg', 2), ('/mnt/data/17082025/01/47/image_17082025_01_47_55_10271.jpg', 2), ('/mnt/data/17082025/01/47/image_17082025_01_47_25_10317.jpg', 2), ('/mnt/data/17082025/01/47/image_17082025_01_47_15_10484.jpg', 2), ('/mnt/data/17082025/01/46/image_17082025_01_47_05_9372.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9808e908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:49:38.208705
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f851a9898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:50:50.333940
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0216860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 01:52:03.110928
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/01/49/image_17082025_01_49_54_9043.jpg', 2), ('/mnt/data/17082025/01/49/image_17082025_01_49_15_10266.jpg', 2), ('/mnt/data/17082025/01/48/image_17082025_01_49_04_9023.jpg', 2), ('/mnt/data/17082025/01/48/image_17082025_01_48_55_10236.jpg', 2), ('/mnt/data/17082025/01/48/image_17082025_01_48_45_10273.jpg', 2), ('/mnt/data/17082025/01/47/image_17082025_01_48_05_10390.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2e20978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:53:14.767903
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/01/53/image_17082025_01_53_14_9084.jpg', 2), ('/mnt/data/17082025/01/52/image_17082025_01_53_05_10314.jpg', 2), ('/mnt/data/17082025/01/52/image_17082025_01_52_34_9022.jpg', 2), ('/mnt/data/17082025/01/52/image_17082025_01_52_25_10272.jpg', 2), ('/mnt/data/17082025/01/49/image_17082025_01_49_54_9043.jpg', 2), ('/mnt/data/17082025/01/49/image_17082025_01_49_25_10279.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96d5f908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:54:25.863758
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/01/53/image_17082025_01_54_05_9239.jpg', 2), ('/mnt/data/17082025/01/53/image_17082025_01_53_35_10299.jpg', 2), ('/mnt/data/17082025/01/53/image_17082025_01_53_14_9084.jpg', 2), ('/mnt/data/17082025/01/52/image_17082025_01_53_05_10314.jpg', 2), ('/mnt/data/17082025/01/52/image_17082025_01_52_34_9022.jpg', 2), ('/mnt/data/17082025/01/52/image_17082025_01_52_25_10272.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84abf908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:55:38.044405
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2143898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 01:56:50.160435
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82a91860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 01:59:03.372291
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/01/58/image_17082025_01_58_34_9002.jpg', 2), ('/mnt/data/17082025/01/58/image_17082025_01_58_25_10258.jpg', 2), ('/mnt/data/17082025/01/57/image_17082025_01_57_25_10229.jpg', 2), ('/mnt/data/17082025/01/56/image_17082025_01_57_05_10262.jpg', 2), ('/mnt/data/17082025/01/56/image_17082025_01_56_54_9032.jpg', 2), ('/mnt/data/17082025/01/56/image_17082025_01_56_25_10265.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa04c9978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:00:14.869077
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/01/59/image_17082025_01_59_35_10230.jpg', 2), ('/mnt/data/17082025/01/59/image_17082025_01_59_24_10196.jpg', 2), ('/mnt/data/17082025/01/59/image_17082025_01_59_14_9016.jpg', 2), ('/mnt/data/17082025/01/58/image_17082025_01_59_05_10376.jpg', 2), ('/mnt/data/17082025/01/58/image_17082025_01_58_55_10227.jpg', 2), ('/mnt/data/17082025/01/58/image_17082025_01_58_34_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb55ff908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:01:25.944157
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/02/01/image_17082025_02_01_45_10284.jpg', 2), ('/mnt/data/17082025/02/01/image_17082025_02_01_24_9087.jpg', 2), ('/mnt/data/17082025/02/00/image_17082025_02_01_05_10278.jpg', 2), ('/mnt/data/17082025/02/00/image_17082025_02_00_25_10292.jpg', 2), ('/mnt/data/17082025/01/59/image_17082025_01_59_35_10230.jpg', 2), ('/mnt/data/17082025/01/59/image_17082025_01_59_24_10196.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89ed5908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:02:38.006216
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa57d3898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:03:50.164502
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9087860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 02:05:03.017552
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/02/03/image_17082025_02_03_25_10259.jpg', 2), ('/mnt/data/17082025/02/02/image_17082025_02_02_54_9056.jpg', 2), ('/mnt/data/17082025/02/02/image_17082025_02_02_45_10248.jpg', 2), ('/mnt/data/17082025/02/01/image_17082025_02_01_55_10252.jpg', 2), ('/mnt/data/17082025/02/01/image_17082025_02_01_45_10284.jpg', 2), ('/mnt/data/17082025/02/01/image_17082025_02_01_24_9087.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8704e908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:06:14.643174
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/02/05/image_17082025_02_05_55_10262.jpg', 2), ('/mnt/data/17082025/02/03/image_17082025_02_03_34_9047.jpg', 2), ('/mnt/data/17082025/02/03/image_17082025_02_03_25_10259.jpg', 2), ('/mnt/data/17082025/02/02/image_17082025_02_02_54_9056.jpg', 2), ('/mnt/data/17082025/02/02/image_17082025_02_02_45_10248.jpg', 2), ('/mnt/data/17082025/02/01/image_17082025_02_01_55_10252.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94a27908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:07:26.705100
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/02/06/image_17082025_02_07_05_10317.jpg', 2), ('/mnt/data/17082025/02/06/image_17082025_02_06_15_10348.jpg', 2), ('/mnt/data/17082025/02/05/image_17082025_02_05_55_10262.jpg', 2), ('/mnt/data/17082025/02/03/image_17082025_02_03_34_9047.jpg', 2), ('/mnt/data/17082025/02/03/image_17082025_02_03_25_10259.jpg', 2), ('/mnt/data/17082025/02/02/image_17082025_02_02_54_9056.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86c9a908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:08:37.865721
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81fc5898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:09:49.964389
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bfc5860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 02:11:02.837286
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/02/10/image_17082025_02_10_24_8976.jpg', 2), ('/mnt/data/17082025/02/10/image_17082025_02_10_15_10258.jpg', 2), ('/mnt/data/17082025/02/08/image_17082025_02_08_24_9009.jpg', 2), ('/mnt/data/17082025/02/07/image_17082025_02_07_44_9049.jpg', 2), ('/mnt/data/17082025/02/06/image_17082025_02_07_05_10317.jpg', 2), ('/mnt/data/17082025/02/06/image_17082025_02_06_15_10348.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9af8b978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:12:14.399432
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/02/12/image_17082025_02_12_45_10246.jpg', 2), ('/mnt/data/17082025/02/11/image_17082025_02_11_14_9016.jpg', 2), ('/mnt/data/17082025/02/10/image_17082025_02_10_55_10232.jpg', 2), ('/mnt/data/17082025/02/10/image_17082025_02_10_24_8976.jpg', 2), ('/mnt/data/17082025/02/10/image_17082025_02_10_15_10258.jpg', 2), ('/mnt/data/17082025/02/08/image_17082025_02_08_24_9009.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bcda908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:13:26.561968
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/02/13/image_17082025_02_13_44_9020.jpg', 2), ('/mnt/data/17082025/02/13/image_17082025_02_13_35_10242.jpg', 2), ('/mnt/data/17082025/02/13/image_17082025_02_13_15_10234.jpg', 2), ('/mnt/data/17082025/02/12/image_17082025_02_13_05_10202.jpg', 2), ('/mnt/data/17082025/02/12/image_17082025_02_12_54_8986.jpg', 2), ('/mnt/data/17082025/02/12/image_17082025_02_12_45_10246.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa8b2908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:14:38.651006
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99c3a898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:15:49.924335
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2b49860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 02:17:02.623694
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/02/15/image_17082025_02_16_05_10319.jpg', 2), ('/mnt/data/17082025/02/15/image_17082025_02_15_35_10208.jpg', 2), ('/mnt/data/17082025/02/14/image_17082025_02_14_45_10264.jpg', 2), ('/mnt/data/17082025/02/14/image_17082025_02_14_25_10232.jpg', 2), ('/mnt/data/17082025/02/13/image_17082025_02_14_05_10277.jpg', 2), ('/mnt/data/17082025/02/13/image_17082025_02_13_54_10216.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa582c978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:18:14.334290
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/02/18/image_17082025_02_18_15_10321.jpg', 2), ('/mnt/data/17082025/02/17/image_17082025_02_18_05_10451.jpg', 2), ('/mnt/data/17082025/02/17/image_17082025_02_17_45_10235.jpg', 2), ('/mnt/data/17082025/02/17/image_17082025_02_17_25_10235.jpg', 2), ('/mnt/data/17082025/02/17/image_17082025_02_17_14_10231.jpg', 2), ('/mnt/data/17082025/02/16/image_17082025_02_16_14_8995.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fc1b908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:19:26.475749
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/02/19/image_17082025_02_19_15_10254.jpg', 2), ('/mnt/data/17082025/02/18/image_17082025_02_19_05_10264.jpg', 2), ('/mnt/data/17082025/02/18/image_17082025_02_18_55_10248.jpg', 2), ('/mnt/data/17082025/02/18/image_17082025_02_18_15_10321.jpg', 2), ('/mnt/data/17082025/02/17/image_17082025_02_18_05_10451.jpg', 2), ('/mnt/data/17082025/02/17/image_17082025_02_17_45_10235.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b616908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:20:38.631032
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f800c9898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:21:50.765187
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91091860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 02:23:02.785549
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/02/21/image_17082025_02_21_45_10184.jpg', 2), ('/mnt/data/17082025/02/21/image_17082025_02_21_34_10207.jpg', 2), ('/mnt/data/17082025/02/20/image_17082025_02_20_55_10245.jpg', 2), ('/mnt/data/17082025/02/20/image_17082025_02_20_34_9020.jpg', 2), ('/mnt/data/17082025/02/20/image_17082025_02_20_15_10303.jpg', 2), ('/mnt/data/17082025/02/19/image_17082025_02_19_25_10191.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb40ce978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:24:14.294868
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/02/23/image_17082025_02_24_04_9174.jpg', 2), ('/mnt/data/17082025/02/23/image_17082025_02_23_55_10183.jpg', 2), ('/mnt/data/17082025/02/23/image_17082025_02_23_45_10198.jpg', 2), ('/mnt/data/17082025/02/23/image_17082025_02_23_35_10196.jpg', 2), ('/mnt/data/17082025/02/22/image_17082025_02_22_24_9008.jpg', 2), ('/mnt/data/17082025/02/21/image_17082025_02_21_45_10184.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a974908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:25:26.376470
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/02/25/image_17082025_02_25_25_10245.jpg', 2), ('/mnt/data/17082025/02/24/image_17082025_02_25_04_10223.jpg', 2), ('/mnt/data/17082025/02/24/image_17082025_02_24_25_10230.jpg', 2), ('/mnt/data/17082025/02/23/image_17082025_02_24_04_9174.jpg', 2), ('/mnt/data/17082025/02/23/image_17082025_02_23_55_10183.jpg', 2), ('/mnt/data/17082025/02/23/image_17082025_02_23_45_10198.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93496898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:26:38.516995
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa76f8828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:27:50.673963
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 02:28:02.169773
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/02/27/image_17082025_02_27_15_10225.jpg', 2), ('/mnt/data/17082025/02/26/image_17082025_02_27_05_10296.jpg', 2), ('/mnt/data/17082025/02/26/image_17082025_02_26_54_8976.jpg', 2), ('/mnt/data/17082025/02/26/image_17082025_02_26_45_10184.jpg', 2), ('/mnt/data/17082025/02/26/image_17082025_02_26_35_10194.jpg', 2), ('/mnt/data/17082025/02/26/image_17082025_02_26_25_10185.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f833aa978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:29:14.804955
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/02/29/image_17082025_02_29_45_10205.jpg', 2), ('/mnt/data/17082025/02/29/image_17082025_02_29_24_10247.jpg', 2), ('/mnt/data/17082025/02/28/image_17082025_02_28_55_10195.jpg', 2), ('/mnt/data/17082025/02/28/image_17082025_02_28_34_10187.jpg', 2), ('/mnt/data/17082025/02/28/image_17082025_02_28_15_10224.jpg', 2), ('/mnt/data/17082025/02/27/image_17082025_02_27_25_10177.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bd05908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:30:25.978729
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/02/30/image_17082025_02_30_45_10230.jpg', 2), ('/mnt/data/17082025/02/30/image_17082025_02_30_14_9019.jpg', 2), ('/mnt/data/17082025/02/29/image_17082025_02_29_55_10203.jpg', 2), ('/mnt/data/17082025/02/29/image_17082025_02_29_45_10205.jpg', 2), ('/mnt/data/17082025/02/29/image_17082025_02_29_24_10247.jpg', 2), ('/mnt/data/17082025/02/28/image_17082025_02_28_55_10195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2f93898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:31:38.183691
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9aa6d898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:32:50.297921
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9085f860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 02:34:03.046799
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/02/32/image_17082025_02_32_25_10215.jpg', 2), ('/mnt/data/17082025/02/31/image_17082025_02_31_55_10237.jpg', 2), ('/mnt/data/17082025/02/31/image_17082025_02_31_45_10218.jpg', 2), ('/mnt/data/17082025/02/30/image_17082025_02_31_04_8978.jpg', 2), ('/mnt/data/17082025/02/30/image_17082025_02_30_55_10238.jpg', 2), ('/mnt/data/17082025/02/30/image_17082025_02_30_45_10230.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b000940>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:35:14.697296
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/02/32/image_17082025_02_32_25_10215.jpg', 2), ('/mnt/data/17082025/02/31/image_17082025_02_31_55_10237.jpg', 2), ('/mnt/data/17082025/02/31/image_17082025_02_31_45_10218.jpg', 2), ('/mnt/data/17082025/02/30/image_17082025_02_31_04_8978.jpg', 2), ('/mnt/data/17082025/02/30/image_17082025_02_30_55_10238.jpg', 2), ('/mnt/data/17082025/02/30/image_17082025_02_30_45_10230.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1ed0908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:36:25.913665
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/02/32/image_17082025_02_32_25_10215.jpg', 2), ('/mnt/data/17082025/02/31/image_17082025_02_31_55_10237.jpg', 2), ('/mnt/data/17082025/02/31/image_17082025_02_31_45_10218.jpg', 2), ('/mnt/data/17082025/02/30/image_17082025_02_31_04_8978.jpg', 2), ('/mnt/data/17082025/02/30/image_17082025_02_30_55_10238.jpg', 2), ('/mnt/data/17082025/02/30/image_17082025_02_30_45_10230.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cb36908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:37:37.984483
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fb1a828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:38:50.088320
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b82c860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 02:40:02.755532
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/02/39/image_17082025_02_39_15_10199.jpg', 2), ('/mnt/data/17082025/02/38/image_17082025_02_38_44_9020.jpg', 2), ('/mnt/data/17082025/02/38/image_17082025_02_38_35_10284.jpg', 2), ('/mnt/data/17082025/02/38/image_17082025_02_38_15_10216.jpg', 2), ('/mnt/data/17082025/02/37/image_17082025_02_38_05_10276.jpg', 2), ('/mnt/data/17082025/02/37/image_17082025_02_37_45_10235.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92507978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:41:14.558185
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/02/41/image_17082025_02_41_25_10249.jpg', 2), ('/mnt/data/17082025/02/41/image_17082025_02_41_15_10273.jpg', 2), ('/mnt/data/17082025/02/39/image_17082025_02_40_05_10508.jpg', 2), ('/mnt/data/17082025/02/39/image_17082025_02_39_34_10204.jpg', 2), ('/mnt/data/17082025/02/39/image_17082025_02_39_15_10199.jpg', 2), ('/mnt/data/17082025/02/38/image_17082025_02_38_44_9020.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e28e908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:42:26.640134
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/02/42/image_17082025_02_42_15_10363.jpg', 2), ('/mnt/data/17082025/02/41/image_17082025_02_42_05_10285.jpg', 2), ('/mnt/data/17082025/02/41/image_17082025_02_41_54_10266.jpg', 2), ('/mnt/data/17082025/02/41/image_17082025_02_41_25_10249.jpg', 2), ('/mnt/data/17082025/02/41/image_17082025_02_41_15_10273.jpg', 2), ('/mnt/data/17082025/02/39/image_17082025_02_40_05_10508.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f6fa908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:43:38.766603
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa26c0898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:44:49.919256
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8da04860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 02:46:02.528049
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/02/45/image_17082025_02_45_15_10295.jpg', 2), ('/mnt/data/17082025/02/44/image_17082025_02_44_55_10278.jpg', 2), ('/mnt/data/17082025/02/44/image_17082025_02_44_35_10258.jpg', 2), ('/mnt/data/17082025/02/44/image_17082025_02_44_24_10251.jpg', 2), ('/mnt/data/17082025/02/43/image_17082025_02_44_05_10245.jpg', 2), ('/mnt/data/17082025/02/43/image_17082025_02_43_55_10218.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f879d8978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:47:14.236764
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/02/46/image_17082025_02_46_45_10251.jpg', 2), ('/mnt/data/17082025/02/46/image_17082025_02_46_35_10295.jpg', 2), ('/mnt/data/17082025/02/46/image_17082025_02_46_25_10286.jpg', 2), ('/mnt/data/17082025/02/46/image_17082025_02_46_14_9039.jpg', 2), ('/mnt/data/17082025/02/45/image_17082025_02_45_55_10283.jpg', 2), ('/mnt/data/17082025/02/45/image_17082025_02_45_15_10295.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae558898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:48:26.592742
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/02/48/image_17082025_02_48_34_10152.jpg', 2), ('/mnt/data/17082025/02/48/image_17082025_02_48_27_9100.jpg', 2), ('/mnt/data/17082025/02/48/image_17082025_02_48_15_10325.jpg', 2), ('/mnt/data/17082025/02/47/image_17082025_02_47_15_10231.jpg', 2), ('/mnt/data/17082025/02/46/image_17082025_02_46_45_10251.jpg', 2), ('/mnt/data/17082025/02/46/image_17082025_02_46_35_10295.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95ae6898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:49:38.727309
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bd00898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:50:49.835142
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f300860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 02:52:02.305075
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/02/50/image_17082025_02_51_05_10318.jpg', 2), ('/mnt/data/17082025/02/50/image_17082025_02_50_55_10246.jpg', 2), ('/mnt/data/17082025/02/50/image_17082025_02_50_45_10239.jpg', 2), ('/mnt/data/17082025/02/50/image_17082025_02_50_34_9013.jpg', 2), ('/mnt/data/17082025/02/50/image_17082025_02_50_15_10306.jpg', 2), ('/mnt/data/17082025/02/49/image_17082025_02_50_05_10516.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c2a5978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:53:14.229885
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/02/53/image_17082025_02_53_35_10212.jpg', 2), ('/mnt/data/17082025/02/53/image_17082025_02_53_15_10258.jpg', 2), ('/mnt/data/17082025/02/52/image_17082025_02_52_55_10234.jpg', 2), ('/mnt/data/17082025/02/52/image_17082025_02_52_35_10213.jpg', 2), ('/mnt/data/17082025/02/52/image_17082025_02_52_25_10186.jpg', 2), ('/mnt/data/17082025/02/51/image_17082025_02_52_04_9024.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9147f898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:54:26.361765
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/02/54/image_17082025_02_54_44_8993.jpg', 2), ('/mnt/data/17082025/02/54/image_17082025_02_54_35_10215.jpg', 2), ('/mnt/data/17082025/02/54/image_17082025_02_54_25_10211.jpg', 2), ('/mnt/data/17082025/02/54/image_17082025_02_54_15_10240.jpg', 2), ('/mnt/data/17082025/02/53/image_17082025_02_54_05_10236.jpg', 2), ('/mnt/data/17082025/02/53/image_17082025_02_53_54_9028.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4113908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:55:38.606054
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95470898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 02:56:50.654270
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7810860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 02:59:02.969988
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/02/58/image_17082025_02_58_35_10235.jpg', 2), ('/mnt/data/17082025/02/57/image_17082025_02_57_55_10198.jpg', 2), ('/mnt/data/17082025/02/57/image_17082025_02_57_34_9035.jpg', 2), ('/mnt/data/17082025/02/57/image_17082025_02_57_15_10288.jpg', 2), ('/mnt/data/17082025/02/56/image_17082025_02_57_05_10349.jpg', 2), ('/mnt/data/17082025/02/56/image_17082025_02_56_45_10259.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae8e0978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:00:14.473162
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/03/00/image_17082025_03_00_35_10223.jpg', 2), ('/mnt/data/17082025/02/59/image_17082025_03_00_05_9260.jpg', 2), ('/mnt/data/17082025/02/59/image_17082025_02_59_14_10243.jpg', 2), ('/mnt/data/17082025/02/58/image_17082025_02_59_04_9020.jpg', 2), ('/mnt/data/17082025/02/58/image_17082025_02_58_55_10253.jpg', 2), ('/mnt/data/17082025/02/58/image_17082025_02_58_35_10235.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa72d7898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:01:26.598656
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/03/01/image_17082025_03_01_24_9088.jpg', 2), ('/mnt/data/17082025/03/01/image_17082025_03_01_15_10274.jpg', 2), ('/mnt/data/17082025/03/00/image_17082025_03_01_05_10333.jpg', 2), ('/mnt/data/17082025/03/00/image_17082025_03_00_55_10268.jpg', 2), ('/mnt/data/17082025/03/00/image_17082025_03_00_35_10223.jpg', 2), ('/mnt/data/17082025/02/59/image_17082025_03_00_05_9260.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ba4b908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:02:38.760220
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92509898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:03:49.898116
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa092d860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 03:05:03.366833
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/03/03/image_17082025_03_03_35_10254.jpg', 2), ('/mnt/data/17082025/03/03/image_17082025_03_03_25_10239.jpg', 2), ('/mnt/data/17082025/03/02/image_17082025_03_02_25_10237.jpg', 2), ('/mnt/data/17082025/03/02/image_17082025_03_02_15_10283.jpg', 2), ('/mnt/data/17082025/03/01/image_17082025_03_01_35_10251.jpg', 2), ('/mnt/data/17082025/03/01/image_17082025_03_01_24_9088.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f919b8978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:06:13.840976
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/03/05/image_17082025_03_05_55_10228.jpg', 2), ('/mnt/data/17082025/03/05/image_17082025_03_05_44_9015.jpg', 2), ('/mnt/data/17082025/03/04/image_17082025_03_05_05_10308.jpg', 2), ('/mnt/data/17082025/03/04/image_17082025_03_04_24_9108.jpg', 2), ('/mnt/data/17082025/03/04/image_17082025_03_04_15_10351.jpg', 2), ('/mnt/data/17082025/03/03/image_17082025_03_04_05_10491.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f081908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:07:25.990693
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/03/07/image_17082025_03_07_45_10300.jpg', 2), ('/mnt/data/17082025/03/07/image_17082025_03_07_35_10296.jpg', 2), ('/mnt/data/17082025/03/06/image_17082025_03_07_05_10322.jpg', 2), ('/mnt/data/17082025/03/06/image_17082025_03_06_45_10227.jpg', 2), ('/mnt/data/17082025/03/05/image_17082025_03_05_55_10228.jpg', 2), ('/mnt/data/17082025/03/05/image_17082025_03_05_44_9015.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95920908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:08:38.109218
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88399898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:09:50.228432
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f838ce860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 03:11:03.011516
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/03/11/image_17082025_03_11_35_10190.jpg', 2), ('/mnt/data/17082025/03/10/image_17082025_03_10_45_10216.jpg', 2), ('/mnt/data/17082025/03/10/image_17082025_03_10_35_10202.jpg', 2), ('/mnt/data/17082025/03/10/image_17082025_03_10_25_10232.jpg', 2), ('/mnt/data/17082025/03/10/image_17082025_03_10_14_10070.jpg', 2), ('/mnt/data/17082025/03/09/image_17082025_03_09_55_10248.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f862a7978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:12:14.751173
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/03/12/image_17082025_03_12_35_10180.jpg', 2), ('/mnt/data/17082025/03/12/image_17082025_03_12_15_10248.jpg', 2), ('/mnt/data/17082025/03/11/image_17082025_03_12_04_9229.jpg', 2), ('/mnt/data/17082025/03/11/image_17082025_03_11_55_10191.jpg', 2), ('/mnt/data/17082025/03/11/image_17082025_03_11_45_10204.jpg', 2), ('/mnt/data/17082025/03/11/image_17082025_03_11_35_10190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabfb5908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:13:26.737745
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/03/13/image_17082025_03_13_34_8998.jpg', 2), ('/mnt/data/17082025/03/13/image_17082025_03_13_25_10230.jpg', 2), ('/mnt/data/17082025/03/13/image_17082025_03_13_15_10225.jpg', 2), ('/mnt/data/17082025/03/12/image_17082025_03_12_55_9299.jpg', 2), ('/mnt/data/17082025/03/12/image_17082025_03_12_35_10180.jpg', 2), ('/mnt/data/17082025/03/12/image_17082025_03_12_15_10248.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85ef9908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:14:37.879225
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c717828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:15:50.034463
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabd87860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 03:17:02.891393
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/03/16/image_17082025_03_16_45_10218.jpg', 2), ('/mnt/data/17082025/03/16/image_17082025_03_16_35_10201.jpg', 2), ('/mnt/data/17082025/03/15/image_17082025_03_16_05_10366.jpg', 2), ('/mnt/data/17082025/03/15/image_17082025_03_15_55_10222.jpg', 2), ('/mnt/data/17082025/03/15/image_17082025_03_15_45_10217.jpg', 2), ('/mnt/data/17082025/03/15/image_17082025_03_15_35_10224.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab6a1978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:18:14.459552
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/03/17/image_17082025_03_17_35_10195.jpg', 2), ('/mnt/data/17082025/03/17/image_17082025_03_17_25_10260.jpg', 2), ('/mnt/data/17082025/03/16/image_17082025_03_16_56_10183.jpg', 2), ('/mnt/data/17082025/03/16/image_17082025_03_16_45_10218.jpg', 2), ('/mnt/data/17082025/03/16/image_17082025_03_16_35_10201.jpg', 2), ('/mnt/data/17082025/03/15/image_17082025_03_16_05_10366.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f191908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:19:26.561634
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/03/19/image_17082025_03_19_34_10232.jpg', 2), ('/mnt/data/17082025/03/18/image_17082025_03_18_55_10210.jpg', 2), ('/mnt/data/17082025/03/17/image_17082025_03_17_35_10195.jpg', 2), ('/mnt/data/17082025/03/17/image_17082025_03_17_25_10260.jpg', 2), ('/mnt/data/17082025/03/16/image_17082025_03_16_56_10183.jpg', 2), ('/mnt/data/17082025/03/16/image_17082025_03_16_45_10218.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c3a8898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:20:38.730815
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa58b6828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:21:49.849368
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c67f860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 03:23:02.790963
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/03/22/image_17082025_03_22_35_10281.jpg', 2), ('/mnt/data/17082025/03/22/image_17082025_03_22_24_9045.jpg', 2), ('/mnt/data/17082025/03/22/image_17082025_03_22_15_10266.jpg', 2), ('/mnt/data/17082025/03/21/image_17082025_03_22_05_10353.jpg', 2), ('/mnt/data/17082025/03/21/image_17082025_03_21_55_10225.jpg', 2), ('/mnt/data/17082025/03/20/image_17082025_03_20_54_9029.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3a47978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:24:14.470044
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/03/24/image_17082025_03_24_25_10300.jpg', 2), ('/mnt/data/17082025/03/23/image_17082025_03_23_55_10300.jpg', 2), ('/mnt/data/17082025/03/23/image_17082025_03_23_36_10254.jpg', 2), ('/mnt/data/17082025/03/23/image_17082025_03_23_15_9130.jpg', 2), ('/mnt/data/17082025/03/22/image_17082025_03_22_45_10243.jpg', 2), ('/mnt/data/17082025/03/22/image_17082025_03_22_35_10281.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8c86908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:25:26.446485
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/03/25/image_17082025_03_25_44_9066.jpg', 2), ('/mnt/data/17082025/03/25/image_17082025_03_25_25_10274.jpg', 2), ('/mnt/data/17082025/03/24/image_17082025_03_25_05_10279.jpg', 2), ('/mnt/data/17082025/03/24/image_17082025_03_24_45_10254.jpg', 2), ('/mnt/data/17082025/03/24/image_17082025_03_24_25_10300.jpg', 2), ('/mnt/data/17082025/03/23/image_17082025_03_23_55_10300.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9101a908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:26:38.574866
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f924e2828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:27:50.756441
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 03:28:02.344366
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/03/27/image_17082025_03_27_25_10268.jpg', 2), ('/mnt/data/17082025/03/27/image_17082025_03_27_15_10314.jpg', 2), ('/mnt/data/17082025/03/26/image_17082025_03_27_05_10254.jpg', 2), ('/mnt/data/17082025/03/26/image_17082025_03_26_45_10220.jpg', 2), ('/mnt/data/17082025/03/26/image_17082025_03_26_35_10235.jpg', 2), ('/mnt/data/17082025/03/26/image_17082025_03_26_15_10303.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5065978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:29:14.314475
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/03/29/image_17082025_03_29_55_10211.jpg', 2), ('/mnt/data/17082025/03/29/image_17082025_03_29_25_10200.jpg', 2), ('/mnt/data/17082025/03/29/image_17082025_03_29_14_9013.jpg', 2), ('/mnt/data/17082025/03/28/image_17082025_03_29_05_10303.jpg', 2), ('/mnt/data/17082025/03/28/image_17082025_03_28_55_10246.jpg', 2), ('/mnt/data/17082025/03/28/image_17082025_03_28_35_10322.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ffd6908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:30:26.317876
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/03/30/image_17082025_03_30_44_8995.jpg', 2), ('/mnt/data/17082025/03/30/image_17082025_03_30_35_10230.jpg', 2), ('/mnt/data/17082025/03/30/image_17082025_03_30_15_10400.jpg', 2), ('/mnt/data/17082025/03/29/image_17082025_03_29_55_10211.jpg', 2), ('/mnt/data/17082025/03/29/image_17082025_03_29_35_10232.jpg', 2), ('/mnt/data/17082025/03/29/image_17082025_03_29_25_10200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f984fd908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:31:38.474136
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d8fc898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:32:50.591251
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89853860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 03:34:02.496156
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/03/30/image_17082025_03_31_05_10290.jpg', 2), ('/mnt/data/17082025/03/30/image_17082025_03_30_55_10238.jpg', 2), ('/mnt/data/17082025/03/30/image_17082025_03_30_44_8995.jpg', 2), ('/mnt/data/17082025/03/30/image_17082025_03_30_35_10230.jpg', 2), ('/mnt/data/17082025/03/30/image_17082025_03_30_15_10400.jpg', 2), ('/mnt/data/17082025/03/29/image_17082025_03_29_55_10211.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa37d5978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:35:14.132538
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/03/34/image_17082025_03_34_14_9113.jpg', 2), ('/mnt/data/17082025/03/33/image_17082025_03_33_55_10266.jpg', 2), ('/mnt/data/17082025/03/30/image_17082025_03_31_05_10290.jpg', 2), ('/mnt/data/17082025/03/30/image_17082025_03_30_55_10238.jpg', 2), ('/mnt/data/17082025/03/30/image_17082025_03_30_44_8995.jpg', 2), ('/mnt/data/17082025/03/30/image_17082025_03_30_35_10230.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faabdd940>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:36:26.227367
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/03/36/image_17082025_03_36_45_10274.jpg', 2), ('/mnt/data/17082025/03/36/image_17082025_03_36_35_10300.jpg', 2), ('/mnt/data/17082025/03/34/image_17082025_03_34_54_9029.jpg', 2), ('/mnt/data/17082025/03/34/image_17082025_03_34_14_9113.jpg', 2), ('/mnt/data/17082025/03/33/image_17082025_03_33_55_10266.jpg', 2), ('/mnt/data/17082025/03/30/image_17082025_03_31_05_10290.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e400898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:37:38.354805
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dd08898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:38:50.489740
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0ca3860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 03:40:02.100454
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/03/39/image_17082025_03_39_35_10248.jpg', 2), ('/mnt/data/17082025/03/39/image_17082025_03_39_15_10272.jpg', 2), ('/mnt/data/17082025/03/38/image_17082025_03_39_04_9125.jpg', 2), ('/mnt/data/17082025/03/38/image_17082025_03_38_45_10259.jpg', 2), ('/mnt/data/17082025/03/38/image_17082025_03_38_35_10238.jpg', 2), ('/mnt/data/17082025/03/38/image_17082025_03_38_24_10278.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f120908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:41:13.973086
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/03/41/image_17082025_03_41_45_10246.jpg', 2), ('/mnt/data/17082025/03/41/image_17082025_03_41_25_10294.jpg', 2), ('/mnt/data/17082025/03/41/image_17082025_03_41_14_9050.jpg', 2), ('/mnt/data/17082025/03/40/image_17082025_03_41_05_10316.jpg', 2), ('/mnt/data/17082025/03/40/image_17082025_03_40_34_10247.jpg', 2), ('/mnt/data/17082025/03/39/image_17082025_03_39_45_10247.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77633908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:42:26.221315
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/03/42/image_17082025_03_42_25_10283.jpg', 2), ('/mnt/data/17082025/03/41/image_17082025_03_42_05_9123.jpg', 2), ('/mnt/data/17082025/03/41/image_17082025_03_41_55_10275.jpg', 2), ('/mnt/data/17082025/03/41/image_17082025_03_41_45_10246.jpg', 2), ('/mnt/data/17082025/03/41/image_17082025_03_41_25_10294.jpg', 2), ('/mnt/data/17082025/03/41/image_17082025_03_41_14_9050.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fa06908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:43:38.371324
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8baf898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:44:50.502004
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b5ac860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 03:46:03.245098
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/03/45/image_17082025_03_45_25_10203.jpg', 2), ('/mnt/data/17082025/03/45/image_17082025_03_45_15_10239.jpg', 2), ('/mnt/data/17082025/03/44/image_17082025_03_45_05_10223.jpg', 2), ('/mnt/data/17082025/03/44/image_17082025_03_44_44_9534.jpg', 2), ('/mnt/data/17082025/03/44/image_17082025_03_44_35_10216.jpg', 2), ('/mnt/data/17082025/03/44/image_17082025_03_44_25_10304.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90363978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:47:14.099224
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/03/47/image_17082025_03_47_35_10191.jpg', 2), ('/mnt/data/17082025/03/47/image_17082025_03_47_14_9028.jpg', 2), ('/mnt/data/17082025/03/46/image_17082025_03_46_55_10255.jpg', 2), ('/mnt/data/17082025/03/46/image_17082025_03_46_45_10252.jpg', 2), ('/mnt/data/17082025/03/46/image_17082025_03_46_35_10245.jpg', 2), ('/mnt/data/17082025/03/46/image_17082025_03_46_24_9025.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7af78908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:48:26.124823
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/03/48/image_17082025_03_48_25_10404.jpg', 2), ('/mnt/data/17082025/03/48/image_17082025_03_48_14_9003.jpg', 2), ('/mnt/data/17082025/03/47/image_17082025_03_47_45_10234.jpg', 2), ('/mnt/data/17082025/03/47/image_17082025_03_47_35_10191.jpg', 2), ('/mnt/data/17082025/03/47/image_17082025_03_47_14_9028.jpg', 2), ('/mnt/data/17082025/03/46/image_17082025_03_46_55_10255.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f833c0908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:49:38.296012
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facca7898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:50:50.406366
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95d117f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 03:52:03.214496
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/03/50/image_17082025_03_51_05_10233.jpg', 2), ('/mnt/data/17082025/03/50/image_17082025_03_50_55_10232.jpg', 2), ('/mnt/data/17082025/03/50/image_17082025_03_50_34_9002.jpg', 2), ('/mnt/data/17082025/03/50/image_17082025_03_50_15_10279.jpg', 2), ('/mnt/data/17082025/03/49/image_17082025_03_50_05_10236.jpg', 2), ('/mnt/data/17082025/03/49/image_17082025_03_49_54_10258.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae5ce978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:53:13.943227
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/03/53/image_17082025_03_53_35_10211.jpg', 2), ('/mnt/data/17082025/03/53/image_17082025_03_53_25_10255.jpg', 2), ('/mnt/data/17082025/03/52/image_17082025_03_52_35_10268.jpg', 2), ('/mnt/data/17082025/03/52/image_17082025_03_52_25_10262.jpg', 2), ('/mnt/data/17082025/03/51/image_17082025_03_52_05_10358.jpg', 2), ('/mnt/data/17082025/03/51/image_17082025_03_51_45_10275.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cbc4908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:54:26.021605
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/03/54/image_17082025_03_54_45_10610.jpg', 2), ('/mnt/data/17082025/03/54/image_17082025_03_54_25_10202.jpg', 2), ('/mnt/data/17082025/03/54/image_17082025_03_54_15_10245.jpg', 2), ('/mnt/data/17082025/03/53/image_17082025_03_54_05_10501.jpg', 2), ('/mnt/data/17082025/03/53/image_17082025_03_53_44_9013.jpg', 2), ('/mnt/data/17082025/03/53/image_17082025_03_53_35_10211.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb46b3898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:55:38.145364
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1192898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 03:56:50.302159
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e7c0828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 03:59:03.530172
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/03/57/image_17082025_03_57_35_10227.jpg', 2), ('/mnt/data/17082025/03/56/image_17082025_03_56_54_8989.jpg', 2), ('/mnt/data/17082025/03/56/image_17082025_03_56_35_10201.jpg', 2), ('/mnt/data/17082025/03/56/image_17082025_03_56_15_10237.jpg', 2), ('/mnt/data/17082025/03/55/image_17082025_03_56_05_10202.jpg', 2), ('/mnt/data/17082025/03/55/image_17082025_03_55_45_10283.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91b95978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:00:14.164869
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/03/59/image_17082025_03_59_55_10202.jpg', 2), ('/mnt/data/17082025/03/59/image_17082025_03_59_45_10214.jpg', 2), ('/mnt/data/17082025/03/59/image_17082025_03_59_34_9016.jpg', 2), ('/mnt/data/17082025/03/59/image_17082025_03_59_25_10233.jpg', 2), ('/mnt/data/17082025/03/59/image_17082025_03_59_15_10225.jpg', 2), ('/mnt/data/17082025/03/58/image_17082025_03_58_47_10214.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6229908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:01:26.212642
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/03/59/image_17082025_03_59_55_10202.jpg', 2), ('/mnt/data/17082025/03/59/image_17082025_03_59_45_10214.jpg', 2), ('/mnt/data/17082025/03/59/image_17082025_03_59_34_9016.jpg', 2), ('/mnt/data/17082025/03/59/image_17082025_03_59_25_10233.jpg', 2), ('/mnt/data/17082025/03/59/image_17082025_03_59_15_10225.jpg', 2), ('/mnt/data/17082025/03/58/image_17082025_03_58_47_10214.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96a18908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:02:38.303068
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c1f6898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:03:50.461845
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3801860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 04:05:03.327737
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/04/04/image_17082025_04_04_34_9018.jpg', 2), ('/mnt/data/17082025/04/04/image_17082025_04_04_25_10235.jpg', 2), ('/mnt/data/17082025/04/03/image_17082025_04_04_05_10247.jpg', 2), ('/mnt/data/17082025/04/03/image_17082025_04_03_55_10224.jpg', 2), ('/mnt/data/17082025/04/02/image_17082025_04_03_05_10212.jpg', 2), ('/mnt/data/17082025/04/02/image_17082025_04_02_45_10220.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f841f7978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f841f7978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f841f7978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:06:13.928753
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/04/06/image_17082025_04_06_25_10264.jpg', 2), ('/mnt/data/17082025/04/05/image_17082025_04_05_55_10267.jpg', 2), ('/mnt/data/17082025/04/05/image_17082025_04_05_45_10256.jpg', 2), ('/mnt/data/17082025/04/05/image_17082025_04_05_34_10227.jpg', 2), ('/mnt/data/17082025/04/05/image_17082025_04_05_24_9050.jpg', 2), ('/mnt/data/17082025/04/04/image_17082025_04_04_55_10206.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9149b908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9149b908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9149b908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:07:26.078869
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/04/07/image_17082025_04_07_25_10235.jpg', 2), ('/mnt/data/17082025/04/07/image_17082025_04_07_15_10330.jpg', 2), ('/mnt/data/17082025/04/06/image_17082025_04_07_04_9003.jpg', 2), ('/mnt/data/17082025/04/06/image_17082025_04_06_35_10209.jpg', 2), ('/mnt/data/17082025/04/06/image_17082025_04_06_25_10264.jpg', 2), ('/mnt/data/17082025/04/05/image_17082025_04_05_55_10267.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9497a908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9497a908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9497a908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:08:38.159397
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83834898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83834898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83834898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:09:50.320362
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f814f9860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f814f9860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f814f9860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 04:11:03.194956
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/04/10/image_17082025_04_10_45_10211.jpg', 2), ('/mnt/data/17082025/04/10/image_17082025_04_10_35_10240.jpg', 2), ('/mnt/data/17082025/04/10/image_17082025_04_10_25_10205.jpg', 2), ('/mnt/data/17082025/04/10/image_17082025_04_10_15_10262.jpg', 2), ('/mnt/data/17082025/04/08/image_17082025_04_08_45_10257.jpg', 2), ('/mnt/data/17082025/04/08/image_17082025_04_08_34_8991.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b1ce978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b1ce978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b1ce978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:12:14.759433
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/04/12/image_17082025_04_12_34_9038.jpg', 2), ('/mnt/data/17082025/04/12/image_17082025_04_12_15_10326.jpg', 2), ('/mnt/data/17082025/04/11/image_17082025_04_12_05_10435.jpg', 2), ('/mnt/data/17082025/04/11/image_17082025_04_11_54_9013.jpg', 2), ('/mnt/data/17082025/04/11/image_17082025_04_11_45_10188.jpg', 2), ('/mnt/data/17082025/04/10/image_17082025_04_11_04_10223.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90341908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90341908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90341908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:13:25.904932
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/04/13/image_17082025_04_13_35_10258.jpg', 2), ('/mnt/data/17082025/04/13/image_17082025_04_13_24_9017.jpg', 2), ('/mnt/data/17082025/04/13/image_17082025_04_13_15_10270.jpg', 2), ('/mnt/data/17082025/04/12/image_17082025_04_13_05_10193.jpg', 2), ('/mnt/data/17082025/04/12/image_17082025_04_12_55_10199.jpg', 2), ('/mnt/data/17082025/04/12/image_17082025_04_12_34_9038.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83b5e908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83b5e908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83b5e908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:14:38.079755
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadf08898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadf08898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadf08898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:15:14.268626
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/04/15/image_17082025_04_15_25_10215.jpg', 2), ('/mnt/data/17082025/04/15/image_17082025_04_15_14_10243.jpg', 2), ('/mnt/data/17082025/04/14/image_17082025_04_15_04_9022.jpg', 2), ('/mnt/data/17082025/04/14/image_17082025_04_14_45_10205.jpg', 2), ('/mnt/data/17082025/04/14/image_17082025_04_14_14_9052.jpg', 2), ('/mnt/data/17082025/04/13/image_17082025_04_13_45_10258.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c67c908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c67c908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c67c908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:16:26.359173
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/04/16/image_17082025_04_16_45_10196.jpg', 2), ('/mnt/data/17082025/04/15/image_17082025_04_15_35_10255.jpg', 2), ('/mnt/data/17082025/04/15/image_17082025_04_15_25_10215.jpg', 2), ('/mnt/data/17082025/04/15/image_17082025_04_15_14_10243.jpg', 2), ('/mnt/data/17082025/04/14/image_17082025_04_15_04_9022.jpg', 2), ('/mnt/data/17082025/04/14/image_17082025_04_14_45_10205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90ed5908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90ed5908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90ed5908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:17:38.477635
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fcaa898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fcaa898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fcaa898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:18:50.612719
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82b05860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82b05860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82b05860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 04:20:02.385362
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/04/19/image_17082025_04_19_35_10193.jpg', 2), ('/mnt/data/17082025/04/18/image_17082025_04_18_55_10205.jpg', 2), ('/mnt/data/17082025/04/18/image_17082025_04_18_45_10239.jpg', 2), ('/mnt/data/17082025/04/18/image_17082025_04_18_34_10212.jpg', 2), ('/mnt/data/17082025/04/17/image_17082025_04_18_05_10216.jpg', 2), ('/mnt/data/17082025/04/17/image_17082025_04_17_55_10251.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bb3f978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bb3f978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bb3f978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:21:14.188017
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/04/20/image_17082025_04_20_54_9091.jpg', 2), ('/mnt/data/17082025/04/20/image_17082025_04_20_45_10251.jpg', 2), ('/mnt/data/17082025/04/19/image_17082025_04_20_05_10304.jpg', 2), ('/mnt/data/17082025/04/19/image_17082025_04_19_55_10236.jpg', 2), ('/mnt/data/17082025/04/19/image_17082025_04_19_35_10193.jpg', 2), ('/mnt/data/17082025/04/18/image_17082025_04_18_55_10205.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb42b0908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb42b0908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb42b0908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:22:26.342663
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/04/21/image_17082025_04_22_04_9136.jpg', 2), ('/mnt/data/17082025/04/21/image_17082025_04_21_15_10409.jpg', 2), ('/mnt/data/17082025/04/20/image_17082025_04_20_54_9091.jpg', 2), ('/mnt/data/17082025/04/20/image_17082025_04_20_45_10251.jpg', 2), ('/mnt/data/17082025/04/19/image_17082025_04_20_05_10304.jpg', 2), ('/mnt/data/17082025/04/19/image_17082025_04_19_55_10236.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87a47898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87a47898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87a47898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:23:38.428117
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d48a898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d48a898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d48a898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:24:50.572061
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83085860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83085860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83085860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 04:26:02.306552
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/04/25/image_17082025_04_25_45_10357.jpg', 2), ('/mnt/data/17082025/04/25/image_17082025_04_25_34_9043.jpg', 2), ('/mnt/data/17082025/04/25/image_17082025_04_25_15_10276.jpg', 2), ('/mnt/data/17082025/04/24/image_17082025_04_25_05_10281.jpg', 2), ('/mnt/data/17082025/04/24/image_17082025_04_24_55_10223.jpg', 2), ('/mnt/data/17082025/04/24/image_17082025_04_24_44_9003.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c07d978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c07d978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c07d978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:27:14.193171
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 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 www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 04:29:03.132368
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/04/28/image_17082025_04_28_35_10252.jpg', 2), ('/mnt/data/17082025/04/28/image_17082025_04_28_25_10265.jpg', 2), ('/mnt/data/17082025/04/28/image_17082025_04_28_15_10314.jpg', 2), ('/mnt/data/17082025/04/27/image_17082025_04_28_04_10257.jpg', 2), ('/mnt/data/17082025/04/27/image_17082025_04_27_45_10225.jpg', 2), ('/mnt/data/17082025/04/27/image_17082025_04_27_35_10266.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b198978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b198978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b198978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:30:14.760061
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/04/28/image_17082025_04_29_05_10641.jpg', 2), ('/mnt/data/17082025/04/28/image_17082025_04_28_44_8989.jpg', 2), ('/mnt/data/17082025/04/28/image_17082025_04_28_35_10252.jpg', 2), ('/mnt/data/17082025/04/28/image_17082025_04_28_25_10265.jpg', 2), ('/mnt/data/17082025/04/28/image_17082025_04_28_15_10314.jpg', 2), ('/mnt/data/17082025/04/27/image_17082025_04_28_04_10257.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83170908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83170908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83170908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 04:31:03.443800
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/04/28/image_17082025_04_29_05_10641.jpg', 2), ('/mnt/data/17082025/04/28/image_17082025_04_28_44_8989.jpg', 2), ('/mnt/data/17082025/04/28/image_17082025_04_28_35_10252.jpg', 2), ('/mnt/data/17082025/04/28/image_17082025_04_28_25_10265.jpg', 2), ('/mnt/data/17082025/04/28/image_17082025_04_28_15_10314.jpg', 2), ('/mnt/data/17082025/04/27/image_17082025_04_28_04_10257.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f640978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f640978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f640978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:32:13.907473
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/04/32/image_17082025_04_32_24_8971.jpg', 2), ('/mnt/data/17082025/04/31/image_17082025_04_32_05_10463.jpg', 2), ('/mnt/data/17082025/04/31/image_17082025_04_31_55_10184.jpg', 2), ('/mnt/data/17082025/04/31/image_17082025_04_31_44_10191.jpg', 2), ('/mnt/data/17082025/04/31/image_17082025_04_31_34_9021.jpg', 2), ('/mnt/data/17082025/04/31/image_17082025_04_31_15_10206.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7658e908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7658e908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7658e908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:33:26.081452
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/04/33/image_17082025_04_33_45_10198.jpg', 2), ('/mnt/data/17082025/04/33/image_17082025_04_33_24_10200.jpg', 2), ('/mnt/data/17082025/04/33/image_17082025_04_33_14_9031.jpg', 2), ('/mnt/data/17082025/04/32/image_17082025_04_33_05_10245.jpg', 2), ('/mnt/data/17082025/04/32/image_17082025_04_32_45_10264.jpg', 2), ('/mnt/data/17082025/04/32/image_17082025_04_32_24_8971.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad081908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad081908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad081908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:34:38.218151
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9323f898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9323f898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9323f898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:35:50.355150
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f980b3860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f980b3860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f980b3860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 04:37:03.205826
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/04/35/image_17082025_04_35_44_9011.jpg', 2), ('/mnt/data/17082025/04/35/image_17082025_04_35_35_10249.jpg', 2), ('/mnt/data/17082025/04/35/image_17082025_04_35_25_10236.jpg', 2), ('/mnt/data/17082025/04/34/image_17082025_04_35_05_10206.jpg', 2), ('/mnt/data/17082025/04/34/image_17082025_04_34_54_9014.jpg', 2), ('/mnt/data/17082025/04/34/image_17082025_04_34_25_10217.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82e29978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82e29978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82e29978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:38:14.878379
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/04/38/image_17082025_04_38_35_10246.jpg', 2), ('/mnt/data/17082025/04/38/image_17082025_04_38_25_10210.jpg', 2), ('/mnt/data/17082025/04/38/image_17082025_04_38_14_9066.jpg', 2), ('/mnt/data/17082025/04/37/image_17082025_04_37_45_10206.jpg', 2), ('/mnt/data/17082025/04/37/image_17082025_04_37_15_10253.jpg', 2), ('/mnt/data/17082025/04/35/image_17082025_04_35_54_10202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8acf3908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8acf3908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8acf3908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:39:25.930121
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/04/38/image_17082025_04_39_05_10283.jpg', 2), ('/mnt/data/17082025/04/38/image_17082025_04_38_55_9497.jpg', 2), ('/mnt/data/17082025/04/38/image_17082025_04_38_35_10246.jpg', 2), ('/mnt/data/17082025/04/38/image_17082025_04_38_25_10210.jpg', 2), ('/mnt/data/17082025/04/38/image_17082025_04_38_14_9066.jpg', 2), ('/mnt/data/17082025/04/37/image_17082025_04_37_45_10206.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a62e908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a62e908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a62e908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:40:38.001163
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9958d8d0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9958d8d0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9958d8d0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:41:50.176758
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf203860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf203860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf203860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 04:43:03.106553
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/04/42/image_17082025_04_42_35_10210.jpg', 2), ('/mnt/data/17082025/04/42/image_17082025_04_42_25_10234.jpg', 2), ('/mnt/data/17082025/04/41/image_17082025_04_41_25_10210.jpg', 2), ('/mnt/data/17082025/04/41/image_17082025_04_41_14_9071.jpg', 2), ('/mnt/data/17082025/04/40/image_17082025_04_40_55_10215.jpg', 2), ('/mnt/data/17082025/04/40/image_17082025_04_40_45_10273.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabaef978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabaef978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabaef978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:44:14.600041
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/04/43/image_17082025_04_44_05_10216.jpg', 2), ('/mnt/data/17082025/04/43/image_17082025_04_43_54_10212.jpg', 2), ('/mnt/data/17082025/04/43/image_17082025_04_43_44_9040.jpg', 2), ('/mnt/data/17082025/04/43/image_17082025_04_43_35_10228.jpg', 2), ('/mnt/data/17082025/04/43/image_17082025_04_43_25_10220.jpg', 2), ('/mnt/data/17082025/04/42/image_17082025_04_43_04_10247.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb203e908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb203e908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb203e908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:45:26.729005
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/04/45/image_17082025_04_45_45_10252.jpg', 2), ('/mnt/data/17082025/04/45/image_17082025_04_45_24_8993.jpg', 2), ('/mnt/data/17082025/04/44/image_17082025_04_45_05_10274.jpg', 2), ('/mnt/data/17082025/04/44/image_17082025_04_44_55_10215.jpg', 2), ('/mnt/data/17082025/04/43/image_17082025_04_44_05_10216.jpg', 2), ('/mnt/data/17082025/04/43/image_17082025_04_43_54_10212.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa33af940>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa33af940>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa33af940>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:46:37.855960
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa23d4898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa23d4898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa23d4898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:47:50.132090
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99e6e860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99e6e860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99e6e860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 04:49:03.039920
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/04/48/image_17082025_04_48_44_8986.jpg', 2), ('/mnt/data/17082025/04/48/image_17082025_04_48_35_10203.jpg', 2), ('/mnt/data/17082025/04/48/image_17082025_04_48_25_10565.jpg', 2), ('/mnt/data/17082025/04/48/image_17082025_04_48_15_10273.jpg', 2), ('/mnt/data/17082025/04/47/image_17082025_04_48_04_9057.jpg', 2), ('/mnt/data/17082025/04/47/image_17082025_04_47_55_10237.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91ed5978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91ed5978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91ed5978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:50:14.576055
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/04/50/image_17082025_04_50_35_10235.jpg', 2), ('/mnt/data/17082025/04/50/image_17082025_04_50_15_10205.jpg', 2), ('/mnt/data/17082025/04/49/image_17082025_04_50_05_10350.jpg', 2), ('/mnt/data/17082025/04/49/image_17082025_04_49_55_10217.jpg', 2), ('/mnt/data/17082025/04/49/image_17082025_04_49_15_10239.jpg', 2), ('/mnt/data/17082025/04/48/image_17082025_04_49_05_10240.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96029898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96029898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96029898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:51:26.686266
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/04/51/image_17082025_04_51_45_10199.jpg', 2), ('/mnt/data/17082025/04/51/image_17082025_04_51_35_10194.jpg', 2), ('/mnt/data/17082025/04/51/image_17082025_04_51_24_9000.jpg', 2), ('/mnt/data/17082025/04/51/image_17082025_04_51_15_10208.jpg', 2), ('/mnt/data/17082025/04/50/image_17082025_04_51_05_10243.jpg', 2), ('/mnt/data/17082025/04/50/image_17082025_04_50_55_10170.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6aef908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6aef908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6aef908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:52:37.809487
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88b66898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88b66898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88b66898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:53:49.975399
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82e0e860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82e0e860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82e0e860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 04:55:02.606233
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/04/54/image_17082025_04_54_45_10484.jpg', 2), ('/mnt/data/17082025/04/54/image_17082025_04_54_35_10194.jpg', 2), ('/mnt/data/17082025/04/53/image_17082025_04_54_04_8981.jpg', 2), ('/mnt/data/17082025/04/53/image_17082025_04_53_35_10186.jpg', 2), ('/mnt/data/17082025/04/53/image_17082025_04_53_14_10231.jpg', 2), ('/mnt/data/17082025/04/52/image_17082025_04_53_04_9009.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1d81978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1d81978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1d81978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:56:14.433139
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/04/56/image_17082025_04_56_25_10225.jpg', 2), ('/mnt/data/17082025/04/55/image_17082025_04_56_05_10217.jpg', 2), ('/mnt/data/17082025/04/55/image_17082025_04_55_54_10225.jpg', 2), ('/mnt/data/17082025/04/55/image_17082025_04_55_44_8980.jpg', 2), ('/mnt/data/17082025/04/55/image_17082025_04_55_35_10210.jpg', 2), ('/mnt/data/17082025/04/54/image_17082025_04_55_05_10225.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7dac908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7dac908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7dac908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 04:57:26.569503
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 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 www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 04:59:03.060109
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/04/58/image_17082025_04_58_34_10221.jpg', 2), ('/mnt/data/17082025/04/58/image_17082025_04_58_24_9028.jpg', 2), ('/mnt/data/17082025/04/57/image_17082025_04_58_05_10232.jpg', 2), ('/mnt/data/17082025/04/57/image_17082025_04_57_45_10235.jpg', 2), ('/mnt/data/17082025/04/57/image_17082025_04_57_25_10234.jpg', 2), ('/mnt/data/17082025/04/57/image_17082025_04_57_15_10231.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78af7908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78af7908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78af7908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:00:14.532918
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/05/00/image_17082025_05_00_44_9044.jpg', 2), ('/mnt/data/17082025/05/00/image_17082025_05_00_25_10271.jpg', 2), ('/mnt/data/17082025/05/00/image_17082025_05_00_15_10284.jpg', 2), ('/mnt/data/17082025/04/59/image_17082025_05_00_04_9317.jpg', 2), ('/mnt/data/17082025/04/59/image_17082025_04_59_55_10189.jpg', 2), ('/mnt/data/17082025/04/59/image_17082025_04_59_45_10259.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac5b5908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac5b5908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac5b5908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:01:26.511495
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/05/01/image_17082025_05_01_45_10212.jpg', 2), ('/mnt/data/17082025/05/01/image_17082025_05_01_34_9006.jpg', 2), ('/mnt/data/17082025/05/01/image_17082025_05_01_25_10297.jpg', 2), ('/mnt/data/17082025/05/01/image_17082025_05_01_16_10294.jpg', 2), ('/mnt/data/17082025/05/00/image_17082025_05_00_44_9044.jpg', 2), ('/mnt/data/17082025/05/00/image_17082025_05_00_35_10269.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9274a908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9274a908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9274a908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:02:38.643629
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab117898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab117898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab117898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:03:50.795893
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76f277f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76f277f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76f277f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 05:05:02.598416
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/05/03/image_17082025_05_03_55_10262.jpg', 2), ('/mnt/data/17082025/05/03/image_17082025_05_03_44_10256.jpg', 2), ('/mnt/data/17082025/05/03/image_17082025_05_03_25_10269.jpg', 2), ('/mnt/data/17082025/05/03/image_17082025_05_03_15_10304.jpg', 2), ('/mnt/data/17082025/05/02/image_17082025_05_03_05_10391.jpg', 2), ('/mnt/data/17082025/05/02/image_17082025_05_02_54_9027.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb110e978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb110e978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb110e978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:06:14.245468
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/05/06/image_17082025_05_06_15_10298.jpg', 2), ('/mnt/data/17082025/05/05/image_17082025_05_06_05_10335.jpg', 2), ('/mnt/data/17082025/05/05/image_17082025_05_05_54_9012.jpg', 2), ('/mnt/data/17082025/05/04/image_17082025_05_05_04_9015.jpg', 2), ('/mnt/data/17082025/05/04/image_17082025_05_04_55_10448.jpg', 2), ('/mnt/data/17082025/05/03/image_17082025_05_03_55_10262.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86d23908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86d23908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86d23908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:07:26.374804
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/05/07/image_17082025_05_07_45_10197.jpg', 2), ('/mnt/data/17082025/05/06/image_17082025_05_06_25_10244.jpg', 2), ('/mnt/data/17082025/05/06/image_17082025_05_06_15_10298.jpg', 2), ('/mnt/data/17082025/05/05/image_17082025_05_06_05_10335.jpg', 2), ('/mnt/data/17082025/05/05/image_17082025_05_05_54_9012.jpg', 2), ('/mnt/data/17082025/05/04/image_17082025_05_05_04_9015.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa07c2908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa07c2908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa07c2908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:08:38.495535
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb203a898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb203a898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb203a898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:09:50.715124
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9adf7860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9adf7860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9adf7860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 05:11:02.576368
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/05/10/image_17082025_05_10_34_9002.jpg', 2), ('/mnt/data/17082025/05/10/image_17082025_05_10_15_10315.jpg', 2), ('/mnt/data/17082025/05/09/image_17082025_05_10_05_10321.jpg', 2), ('/mnt/data/17082025/05/09/image_17082025_05_09_54_10223.jpg', 2), ('/mnt/data/17082025/05/09/image_17082025_05_09_44_8979.jpg', 2), ('/mnt/data/17082025/05/09/image_17082025_05_09_35_10204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97f07908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97f07908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97f07908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:12:14.107637
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/05/12/image_17082025_05_12_35_10244.jpg', 2), ('/mnt/data/17082025/05/11/image_17082025_05_12_04_9235.jpg', 2), ('/mnt/data/17082025/05/11/image_17082025_05_11_45_10248.jpg', 2), ('/mnt/data/17082025/05/11/image_17082025_05_11_35_10211.jpg', 2), ('/mnt/data/17082025/05/11/image_17082025_05_11_24_8979.jpg', 2), ('/mnt/data/17082025/05/11/image_17082025_05_11_15_10271.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6538908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6538908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6538908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:13:26.279209
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/05/13/image_17082025_05_13_35_10205.jpg', 2), ('/mnt/data/17082025/05/13/image_17082025_05_13_15_10281.jpg', 2), ('/mnt/data/17082025/05/12/image_17082025_05_12_45_10248.jpg', 2), ('/mnt/data/17082025/05/12/image_17082025_05_12_35_10244.jpg', 2), ('/mnt/data/17082025/05/11/image_17082025_05_12_04_9235.jpg', 2), ('/mnt/data/17082025/05/11/image_17082025_05_11_45_10248.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b16a940>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b16a940>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b16a940>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:14:38.356917
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f818ea898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f818ea898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f818ea898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:15:50.537076
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8304f860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8304f860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8304f860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 05:17:02.465015
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/05/16/image_17082025_05_16_34_8978.jpg', 2), ('/mnt/data/17082025/05/16/image_17082025_05_16_25_10200.jpg', 2), ('/mnt/data/17082025/05/15/image_17082025_05_16_05_10198.jpg', 2), ('/mnt/data/17082025/05/15/image_17082025_05_15_45_10224.jpg', 2), ('/mnt/data/17082025/05/15/image_17082025_05_15_34_8988.jpg', 2), ('/mnt/data/17082025/05/15/image_17082025_05_15_25_10216.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c832978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c832978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c832978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:18:14.047139
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/05/18/image_17082025_05_18_25_10352.jpg', 2), ('/mnt/data/17082025/05/16/image_17082025_05_16_45_10212.jpg', 2), ('/mnt/data/17082025/05/16/image_17082025_05_16_34_8978.jpg', 2), ('/mnt/data/17082025/05/16/image_17082025_05_16_25_10200.jpg', 2), ('/mnt/data/17082025/05/15/image_17082025_05_16_05_10198.jpg', 2), ('/mnt/data/17082025/05/15/image_17082025_05_15_45_10224.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d2da898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d2da898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d2da898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:19:26.159709
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/05/19/image_17082025_05_19_15_10241.jpg', 2), ('/mnt/data/17082025/05/18/image_17082025_05_18_34_9765.jpg', 2), ('/mnt/data/17082025/05/18/image_17082025_05_18_25_10352.jpg', 2), ('/mnt/data/17082025/05/16/image_17082025_05_16_45_10212.jpg', 2), ('/mnt/data/17082025/05/16/image_17082025_05_16_34_8978.jpg', 2), ('/mnt/data/17082025/05/16/image_17082025_05_16_25_10200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8367e908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8367e908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8367e908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:20:38.433436
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf76a898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf76a898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf76a898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:21:50.582971
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8db2f7f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8db2f7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8db2f7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 05:23:02.489994
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/05/22/image_17082025_05_22_25_10223.jpg', 2), ('/mnt/data/17082025/05/22/image_17082025_05_22_15_10243.jpg', 2), ('/mnt/data/17082025/05/21/image_17082025_05_21_54_8990.jpg', 2), ('/mnt/data/17082025/05/21/image_17082025_05_21_45_10195.jpg', 2), ('/mnt/data/17082025/05/20/image_17082025_05_20_35_10265.jpg', 2), ('/mnt/data/17082025/05/20/image_17082025_05_20_25_10288.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f873ee978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f873ee978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f873ee978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:23:49.903484
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81daf7f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81daf7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81daf7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:24:38.036216
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e5f8898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e5f8898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e5f8898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:25:50.145956
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa97af7f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa97af7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa97af7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 05:27:03.074203
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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 www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 05:29:03.084773
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/05/27/image_17082025_05_28_05_10338.jpg', 2), ('/mnt/data/17082025/05/27/image_17082025_05_27_45_10208.jpg', 2), ('/mnt/data/17082025/05/27/image_17082025_05_27_35_10225.jpg', 2), ('/mnt/data/17082025/05/27/image_17082025_05_27_25_10216.jpg', 2), ('/mnt/data/17082025/05/27/image_17082025_05_27_15_10255.jpg', 2), ('/mnt/data/17082025/05/26/image_17082025_05_26_25_10236.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91849978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91849978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91849978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:30:14.297372
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/05/30/image_17082025_05_30_15_10292.jpg', 2), ('/mnt/data/17082025/05/29/image_17082025_05_29_55_10209.jpg', 2), ('/mnt/data/17082025/05/29/image_17082025_05_29_25_10192.jpg', 2), ('/mnt/data/17082025/05/28/image_17082025_05_28_15_10236.jpg', 2), ('/mnt/data/17082025/05/27/image_17082025_05_28_05_10338.jpg', 2), ('/mnt/data/17082025/05/27/image_17082025_05_27_45_10208.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2ad6908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2ad6908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2ad6908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:31:26.455861
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/05/31/image_17082025_05_31_25_10247.jpg', 2), ('/mnt/data/17082025/05/30/image_17082025_05_31_04_9097.jpg', 2), ('/mnt/data/17082025/05/30/image_17082025_05_30_24_9021.jpg', 2), ('/mnt/data/17082025/05/30/image_17082025_05_30_15_10292.jpg', 2), ('/mnt/data/17082025/05/29/image_17082025_05_29_55_10209.jpg', 2), ('/mnt/data/17082025/05/29/image_17082025_05_29_25_10192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3697908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3697908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3697908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:32:38.735644
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b60e898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b60e898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b60e898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:33:49.860169
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f916a4860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f916a4860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f916a4860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 05:35:02.791839
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/05/34/image_17082025_05_34_45_10260.jpg', 2), ('/mnt/data/17082025/05/34/image_17082025_05_34_35_10386.jpg', 2), ('/mnt/data/17082025/05/32/image_17082025_05_32_55_10207.jpg', 2), ('/mnt/data/17082025/05/32/image_17082025_05_32_34_9023.jpg', 2), ('/mnt/data/17082025/05/31/image_17082025_05_31_45_10263.jpg', 2), ('/mnt/data/17082025/05/31/image_17082025_05_31_25_10247.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a6c1978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a6c1978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a6c1978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:35:50.148567
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9aebd860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9aebd860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9aebd860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 05:37:03.045210
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/05/34/image_17082025_05_34_54_9016.jpg', 2), ('/mnt/data/17082025/05/34/image_17082025_05_34_45_10260.jpg', 2), ('/mnt/data/17082025/05/34/image_17082025_05_34_35_10386.jpg', 2), ('/mnt/data/17082025/05/32/image_17082025_05_32_55_10207.jpg', 2), ('/mnt/data/17082025/05/32/image_17082025_05_32_34_9023.jpg', 2), ('/mnt/data/17082025/05/31/image_17082025_05_31_45_10263.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f848c8978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f848c8978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f848c8978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:38:14.595432
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/05/38/image_17082025_05_38_15_10270.jpg', 2), ('/mnt/data/17082025/05/35/image_17082025_05_35_15_10310.jpg', 2), ('/mnt/data/17082025/05/34/image_17082025_05_34_54_9016.jpg', 2), ('/mnt/data/17082025/05/34/image_17082025_05_34_45_10260.jpg', 2), ('/mnt/data/17082025/05/34/image_17082025_05_34_35_10386.jpg', 2), ('/mnt/data/17082025/05/32/image_17082025_05_32_55_10207.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf0ae908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf0ae908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf0ae908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:39:26.760000
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/05/39/image_17082025_05_39_45_10222.jpg', 2), ('/mnt/data/17082025/05/39/image_17082025_05_39_34_10213.jpg', 2), ('/mnt/data/17082025/05/39/image_17082025_05_39_24_8975.jpg', 2), ('/mnt/data/17082025/05/39/image_17082025_05_39_15_10258.jpg', 2), ('/mnt/data/17082025/05/38/image_17082025_05_38_25_10231.jpg', 2), ('/mnt/data/17082025/05/38/image_17082025_05_38_15_10270.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faee7b908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faee7b908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faee7b908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:40:37.858401
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facd66898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facd66898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facd66898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:41:50.082202
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9daac860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9daac860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9daac860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 05:43:02.934022
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/05/41/image_17082025_05_42_04_9108.jpg', 2), ('/mnt/data/17082025/05/41/image_17082025_05_41_45_10208.jpg', 2), ('/mnt/data/17082025/05/41/image_17082025_05_41_25_10217.jpg', 2), ('/mnt/data/17082025/05/41/image_17082025_05_41_14_9079.jpg', 2), ('/mnt/data/17082025/05/40/image_17082025_05_41_05_10242.jpg', 2), ('/mnt/data/17082025/05/40/image_17082025_05_40_55_10235.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac512908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac512908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac512908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:44:14.496390
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/05/43/image_17082025_05_43_35_10230.jpg', 2), ('/mnt/data/17082025/05/43/image_17082025_05_43_25_10249.jpg', 2), ('/mnt/data/17082025/05/42/image_17082025_05_43_04_10222.jpg', 2), ('/mnt/data/17082025/05/42/image_17082025_05_42_45_10200.jpg', 2), ('/mnt/data/17082025/05/41/image_17082025_05_42_04_9108.jpg', 2), ('/mnt/data/17082025/05/41/image_17082025_05_41_45_10208.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f187908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f187908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f187908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:45:26.619983
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/05/45/image_17082025_05_45_34_10192.jpg', 2), ('/mnt/data/17082025/05/45/image_17082025_05_45_24_9024.jpg', 2), ('/mnt/data/17082025/05/44/image_17082025_05_45_05_10246.jpg', 2), ('/mnt/data/17082025/05/44/image_17082025_05_44_25_10208.jpg', 2), ('/mnt/data/17082025/05/43/image_17082025_05_43_35_10230.jpg', 2), ('/mnt/data/17082025/05/43/image_17082025_05_43_25_10249.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa75b9908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa75b9908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa75b9908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:46:38.743377
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8e57898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8e57898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8e57898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:47:49.875920
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a30b7f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a30b7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a30b7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 05:49:02.960959
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/05/48/image_17082025_05_48_25_10203.jpg', 2), ('/mnt/data/17082025/05/47/image_17082025_05_48_05_10272.jpg', 2), ('/mnt/data/17082025/05/47/image_17082025_05_47_45_10193.jpg', 2), ('/mnt/data/17082025/05/47/image_17082025_05_47_35_10241.jpg', 2), ('/mnt/data/17082025/05/47/image_17082025_05_47_24_10238.jpg', 2), ('/mnt/data/17082025/05/47/image_17082025_05_47_14_9023.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c728978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c728978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c728978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:50:14.372517
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/05/50/image_17082025_05_50_35_10208.jpg', 2), ('/mnt/data/17082025/05/50/image_17082025_05_50_25_10222.jpg', 2), ('/mnt/data/17082025/05/49/image_17082025_05_49_45_10196.jpg', 2), ('/mnt/data/17082025/05/49/image_17082025_05_49_35_10208.jpg', 2), ('/mnt/data/17082025/05/49/image_17082025_05_49_25_10197.jpg', 2), ('/mnt/data/17082025/05/49/image_17082025_05_49_14_10231.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faebef908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faebef908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faebef908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 05:51:03.197009
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/05/50/image_17082025_05_50_35_10208.jpg', 2), ('/mnt/data/17082025/05/50/image_17082025_05_50_25_10222.jpg', 2), ('/mnt/data/17082025/05/49/image_17082025_05_49_45_10196.jpg', 2), ('/mnt/data/17082025/05/49/image_17082025_05_49_35_10208.jpg', 2), ('/mnt/data/17082025/05/49/image_17082025_05_49_25_10197.jpg', 2), ('/mnt/data/17082025/05/49/image_17082025_05_49_14_10231.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77a86978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77a86978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77a86978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:52:14.651091
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/05/52/image_17082025_05_52_15_10290.jpg', 2), ('/mnt/data/17082025/05/51/image_17082025_05_52_05_10289.jpg', 2), ('/mnt/data/17082025/05/51/image_17082025_05_51_25_10192.jpg', 2), ('/mnt/data/17082025/05/50/image_17082025_05_51_05_10220.jpg', 2), ('/mnt/data/17082025/05/50/image_17082025_05_50_44_8997.jpg', 2), ('/mnt/data/17082025/05/50/image_17082025_05_50_35_10208.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f821a5898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f821a5898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f821a5898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:53:26.756357
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/05/53/image_17082025_05_53_45_10207.jpg', 2), ('/mnt/data/17082025/05/53/image_17082025_05_53_25_10238.jpg', 2), ('/mnt/data/17082025/05/52/image_17082025_05_53_05_10246.jpg', 2), ('/mnt/data/17082025/05/52/image_17082025_05_52_44_10191.jpg', 2), ('/mnt/data/17082025/05/52/image_17082025_05_52_15_10290.jpg', 2), ('/mnt/data/17082025/05/51/image_17082025_05_52_05_10289.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f820d5908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f820d5908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f820d5908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:54:37.892322
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96876898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96876898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96876898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 05:55:50.043446
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c383860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c383860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c383860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 05:57:02.860601
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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 www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 05:59:02.960234
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/05/58/image_17082025_05_58_25_10234.jpg', 2), ('/mnt/data/17082025/05/57/image_17082025_05_57_44_9009.jpg', 2), ('/mnt/data/17082025/05/57/image_17082025_05_57_35_10207.jpg', 2), ('/mnt/data/17082025/05/56/image_17082025_05_56_54_8995.jpg', 2), ('/mnt/data/17082025/05/56/image_17082025_05_56_45_10199.jpg', 2), ('/mnt/data/17082025/05/56/image_17082025_05_56_25_10352.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80a99978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80a99978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80a99978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:00:14.393236
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/06/00/image_17082025_06_00_15_10242.jpg', 2), ('/mnt/data/17082025/05/59/image_17082025_06_00_05_10428.jpg', 2), ('/mnt/data/17082025/05/59/image_17082025_05_59_55_10217.jpg', 2), ('/mnt/data/17082025/05/59/image_17082025_05_59_44_9059.jpg', 2), ('/mnt/data/17082025/05/59/image_17082025_05_59_15_10351.jpg', 2), ('/mnt/data/17082025/05/58/image_17082025_05_59_04_9125.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e386898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e386898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e386898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:01:26.537177
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/06/00/image_17082025_06_00_24_8994.jpg', 2), ('/mnt/data/17082025/06/00/image_17082025_06_00_15_10242.jpg', 2), ('/mnt/data/17082025/05/59/image_17082025_06_00_05_10428.jpg', 2), ('/mnt/data/17082025/05/59/image_17082025_05_59_55_10217.jpg', 2), ('/mnt/data/17082025/05/59/image_17082025_05_59_44_9059.jpg', 2), ('/mnt/data/17082025/05/59/image_17082025_05_59_15_10351.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86373908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86373908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86373908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:02:38.640998
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87b5e898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87b5e898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87b5e898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:03:50.738980
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e80c898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e80c898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e80c898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 06:05:02.645559
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/06/04/image_17082025_06_04_25_10201.jpg', 2), ('/mnt/data/17082025/06/04/image_17082025_06_04_14_10224.jpg', 2), ('/mnt/data/17082025/06/03/image_17082025_06_04_04_9021.jpg', 2), ('/mnt/data/17082025/06/03/image_17082025_06_03_45_10238.jpg', 2), ('/mnt/data/17082025/06/03/image_17082025_06_03_35_10189.jpg', 2), ('/mnt/data/17082025/06/03/image_17082025_06_03_25_10239.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d90c978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d90c978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d90c978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:06:14.495233
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/06/06/image_17082025_06_06_35_10237.jpg', 2), ('/mnt/data/17082025/06/06/image_17082025_06_06_25_10251.jpg', 2), ('/mnt/data/17082025/06/05/image_17082025_06_05_45_10213.jpg', 2), ('/mnt/data/17082025/06/05/image_17082025_06_05_35_10217.jpg', 2), ('/mnt/data/17082025/06/05/image_17082025_06_05_15_10258.jpg', 2), ('/mnt/data/17082025/06/04/image_17082025_06_04_55_10189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac2db908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac2db908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac2db908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:07:26.583002
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/06/07/image_17082025_06_07_35_10209.jpg', 2), ('/mnt/data/17082025/06/06/image_17082025_06_07_05_10253.jpg', 2), ('/mnt/data/17082025/06/06/image_17082025_06_06_44_8979.jpg', 2), ('/mnt/data/17082025/06/06/image_17082025_06_06_35_10237.jpg', 2), ('/mnt/data/17082025/06/06/image_17082025_06_06_25_10251.jpg', 2), ('/mnt/data/17082025/06/05/image_17082025_06_05_45_10213.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7af43908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7af43908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7af43908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:08:38.680256
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79e34898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79e34898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79e34898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:09:49.844610
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92944860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92944860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92944860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 06:11:02.694311
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/06/10/image_17082025_06_10_45_10224.jpg', 2), ('/mnt/data/17082025/06/10/image_17082025_06_10_35_10211.jpg', 2), ('/mnt/data/17082025/06/10/image_17082025_06_10_24_8989.jpg', 2), ('/mnt/data/17082025/06/10/image_17082025_06_10_15_10249.jpg', 2), ('/mnt/data/17082025/06/09/image_17082025_06_10_05_10316.jpg', 2), ('/mnt/data/17082025/06/09/image_17082025_06_09_55_10244.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ea25978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ea25978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ea25978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:12:14.385661
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/06/12/image_17082025_06_12_25_10256.jpg', 2), ('/mnt/data/17082025/06/12/image_17082025_06_12_15_10277.jpg', 2), ('/mnt/data/17082025/06/11/image_17082025_06_11_55_10256.jpg', 2), ('/mnt/data/17082025/06/11/image_17082025_06_11_35_10203.jpg', 2), ('/mnt/data/17082025/06/11/image_17082025_06_11_24_10214.jpg', 2), ('/mnt/data/17082025/06/11/image_17082025_06_11_14_9030.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78555898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78555898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78555898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:13:26.546022
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/06/13/image_17082025_06_13_35_10263.jpg', 2), ('/mnt/data/17082025/06/13/image_17082025_06_13_15_10239.jpg', 2), ('/mnt/data/17082025/06/12/image_17082025_06_12_54_9017.jpg', 2), ('/mnt/data/17082025/06/12/image_17082025_06_12_25_10256.jpg', 2), ('/mnt/data/17082025/06/12/image_17082025_06_12_15_10277.jpg', 2), ('/mnt/data/17082025/06/11/image_17082025_06_11_55_10256.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f0f1908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f0f1908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f0f1908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:14:38.565823
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb101e898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb101e898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb101e898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:15:50.717439
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb650a7f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb650a7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb650a7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 06:17:02.738385
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/06/16/image_17082025_06_16_35_10206.jpg', 2), ('/mnt/data/17082025/06/15/image_17082025_06_16_05_10212.jpg', 2), ('/mnt/data/17082025/06/15/image_17082025_06_15_55_10210.jpg', 2), ('/mnt/data/17082025/06/15/image_17082025_06_15_15_10248.jpg', 2), ('/mnt/data/17082025/06/14/image_17082025_06_15_05_10211.jpg', 2), ('/mnt/data/17082025/06/14/image_17082025_06_14_55_10237.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d079978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d079978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d079978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:18:14.265173
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/06/18/image_17082025_06_18_45_10237.jpg', 2), ('/mnt/data/17082025/06/18/image_17082025_06_18_25_10195.jpg', 2), ('/mnt/data/17082025/06/18/image_17082025_06_18_15_10255.jpg', 2), ('/mnt/data/17082025/06/17/image_17082025_06_17_55_10230.jpg', 2), ('/mnt/data/17082025/06/16/image_17082025_06_16_45_10201.jpg', 2), ('/mnt/data/17082025/06/16/image_17082025_06_16_35_10206.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b522908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b522908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b522908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:19:26.413807
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/06/19/image_17082025_06_19_35_10217.jpg', 2), ('/mnt/data/17082025/06/19/image_17082025_06_19_25_10233.jpg', 2), ('/mnt/data/17082025/06/18/image_17082025_06_18_54_9107.jpg', 2), ('/mnt/data/17082025/06/18/image_17082025_06_18_45_10237.jpg', 2), ('/mnt/data/17082025/06/18/image_17082025_06_18_25_10195.jpg', 2), ('/mnt/data/17082025/06/18/image_17082025_06_18_15_10255.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a041908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a041908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a041908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:20:38.559673
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bf52898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bf52898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bf52898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:21:50.787730
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d2df7f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d2df7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d2df7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 06:23:02.563808
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/06/22/image_17082025_06_22_45_10222.jpg', 2), ('/mnt/data/17082025/06/22/image_17082025_06_22_25_10235.jpg', 2), ('/mnt/data/17082025/06/21/image_17082025_06_21_55_10212.jpg', 2), ('/mnt/data/17082025/06/21/image_17082025_06_21_45_10222.jpg', 2), ('/mnt/data/17082025/06/21/image_17082025_06_21_35_10249.jpg', 2), ('/mnt/data/17082025/06/21/image_17082025_06_21_24_9026.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6c4e978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6c4e978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6c4e978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:24:14.256806
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/06/23/image_17082025_06_23_35_10218.jpg', 2), ('/mnt/data/17082025/06/23/image_17082025_06_23_14_10220.jpg', 2), ('/mnt/data/17082025/06/22/image_17082025_06_23_04_9039.jpg', 2), ('/mnt/data/17082025/06/22/image_17082025_06_22_55_10264.jpg', 2), ('/mnt/data/17082025/06/22/image_17082025_06_22_45_10222.jpg', 2), ('/mnt/data/17082025/06/22/image_17082025_06_22_25_10235.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a4d4940>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a4d4940>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a4d4940>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:25:26.367097
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/06/25/image_17082025_06_25_45_10192.jpg', 2), ('/mnt/data/17082025/06/25/image_17082025_06_25_35_10187.jpg', 2), ('/mnt/data/17082025/06/23/image_17082025_06_23_55_10256.jpg', 2), ('/mnt/data/17082025/06/23/image_17082025_06_23_35_10218.jpg', 2), ('/mnt/data/17082025/06/23/image_17082025_06_23_14_10220.jpg', 2), ('/mnt/data/17082025/06/22/image_17082025_06_23_04_9039.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f894dc908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f894dc908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f894dc908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:26:38.464531
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76c4d898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76c4d898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76c4d898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:27:50.596640
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 06:28:03.114040
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/06/27/image_17082025_06_27_35_10189.jpg', 2), ('/mnt/data/17082025/06/27/image_17082025_06_27_25_10224.jpg', 2), ('/mnt/data/17082025/06/26/image_17082025_06_26_54_10185.jpg', 2), ('/mnt/data/17082025/06/25/image_17082025_06_26_05_10221.jpg', 2), ('/mnt/data/17082025/06/25/image_17082025_06_25_54_8994.jpg', 2), ('/mnt/data/17082025/06/25/image_17082025_06_25_45_10192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88559978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88559978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88559978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:29:14.105041
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/06/29/image_17082025_06_29_45_10222.jpg', 2), ('/mnt/data/17082025/06/29/image_17082025_06_29_25_10307.jpg', 2), ('/mnt/data/17082025/06/29/image_17082025_06_29_14_9058.jpg', 2), ('/mnt/data/17082025/06/28/image_17082025_06_29_05_10318.jpg', 2), ('/mnt/data/17082025/06/28/image_17082025_06_28_55_10279.jpg', 2), ('/mnt/data/17082025/06/28/image_17082025_06_28_25_10247.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b40c908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b40c908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b40c908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:30:28.266212
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/06/29/image_17082025_06_29_55_10226.jpg', 2), ('/mnt/data/17082025/06/29/image_17082025_06_29_45_10222.jpg', 2), ('/mnt/data/17082025/06/29/image_17082025_06_29_25_10307.jpg', 2), ('/mnt/data/17082025/06/29/image_17082025_06_29_14_9058.jpg', 2), ('/mnt/data/17082025/06/28/image_17082025_06_29_05_10318.jpg', 2), ('/mnt/data/17082025/06/28/image_17082025_06_28_55_10279.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9036d908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9036d908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9036d908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:31:39.471335
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c554898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c554898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c554898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:32:50.569650
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93cce7f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93cce7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93cce7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 06:34:02.514260
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/06/32/image_17082025_06_33_05_10192.jpg', 2), ('/mnt/data/17082025/06/32/image_17082025_06_32_25_10251.jpg', 2), ('/mnt/data/17082025/06/32/image_17082025_06_32_15_10287.jpg', 2), ('/mnt/data/17082025/06/31/image_17082025_06_32_05_10218.jpg', 2), ('/mnt/data/17082025/06/31/image_17082025_06_31_45_10207.jpg', 2), ('/mnt/data/17082025/06/31/image_17082025_06_31_35_10153.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3f7c978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3f7c978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3f7c978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:35:14.162653
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/06/34/image_17082025_06_34_55_10235.jpg', 2), ('/mnt/data/17082025/06/34/image_17082025_06_34_45_10241.jpg', 2), ('/mnt/data/17082025/06/34/image_17082025_06_34_24_8986.jpg', 2), ('/mnt/data/17082025/06/33/image_17082025_06_33_34_8966.jpg', 2), ('/mnt/data/17082025/06/32/image_17082025_06_33_05_10192.jpg', 2), ('/mnt/data/17082025/06/32/image_17082025_06_32_25_10251.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8589d908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8589d908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8589d908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:36:26.232930
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/06/36/image_17082025_06_36_45_10198.jpg', 2), ('/mnt/data/17082025/06/36/image_17082025_06_36_25_10255.jpg', 2), ('/mnt/data/17082025/06/35/image_17082025_06_35_35_10251.jpg', 2), ('/mnt/data/17082025/06/34/image_17082025_06_34_55_10235.jpg', 2), ('/mnt/data/17082025/06/34/image_17082025_06_34_45_10241.jpg', 2), ('/mnt/data/17082025/06/34/image_17082025_06_34_24_8986.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7acf5908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7acf5908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7acf5908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:37:38.325267
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c28e898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c28e898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c28e898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:38:50.485519
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a931860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a931860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a931860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 06:40:03.009155
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/06/39/image_17082025_06_39_34_9026.jpg', 2), ('/mnt/data/17082025/06/39/image_17082025_06_39_25_10254.jpg', 2), ('/mnt/data/17082025/06/39/image_17082025_06_39_15_10246.jpg', 2), ('/mnt/data/17082025/06/38/image_17082025_06_38_55_10249.jpg', 2), ('/mnt/data/17082025/06/38/image_17082025_06_38_44_9026.jpg', 2), ('/mnt/data/17082025/06/38/image_17082025_06_38_35_10220.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88e24978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88e24978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88e24978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:41:13.944598
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/06/41/image_17082025_06_41_35_10236.jpg', 2), ('/mnt/data/17082025/06/41/image_17082025_06_41_25_10191.jpg', 2), ('/mnt/data/17082025/06/41/image_17082025_06_41_15_10247.jpg', 2), ('/mnt/data/17082025/06/40/image_17082025_06_40_45_10222.jpg', 2), ('/mnt/data/17082025/06/40/image_17082025_06_40_35_10215.jpg', 2), ('/mnt/data/17082025/06/40/image_17082025_06_40_24_10220.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c5a9908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c5a9908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c5a9908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:42:26.034097
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/06/42/image_17082025_06_42_45_10218.jpg', 2), ('/mnt/data/17082025/06/42/image_17082025_06_42_34_9034.jpg', 2), ('/mnt/data/17082025/06/42/image_17082025_06_42_15_10260.jpg', 2), ('/mnt/data/17082025/06/41/image_17082025_06_42_05_10355.jpg', 2), ('/mnt/data/17082025/06/41/image_17082025_06_41_45_10283.jpg', 2), ('/mnt/data/17082025/06/41/image_17082025_06_41_35_10236.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb073b908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb073b908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb073b908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:43:38.103825
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95b12860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95b12860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95b12860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:44:50.438743
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97cbb860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97cbb860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97cbb860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 06:46:03.038698
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/06/45/image_17082025_06_45_24_9007.jpg', 2), ('/mnt/data/17082025/06/45/image_17082025_06_45_15_10890.jpg', 2), ('/mnt/data/17082025/06/44/image_17082025_06_44_45_10189.jpg', 2), ('/mnt/data/17082025/06/44/image_17082025_06_44_25_10315.jpg', 2), ('/mnt/data/17082025/06/44/image_17082025_06_44_14_9001.jpg', 2), ('/mnt/data/17082025/06/43/image_17082025_06_44_05_10400.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5a11978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5a11978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5a11978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:47:13.901710
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/06/47/image_17082025_06_47_45_10205.jpg', 2), ('/mnt/data/17082025/06/47/image_17082025_06_47_24_9020.jpg', 2), ('/mnt/data/17082025/06/46/image_17082025_06_47_05_10282.jpg', 2), ('/mnt/data/17082025/06/46/image_17082025_06_46_55_10204.jpg', 2), ('/mnt/data/17082025/06/46/image_17082025_06_46_45_10226.jpg', 2), ('/mnt/data/17082025/06/46/image_17082025_06_46_34_9001.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e153908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e153908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e153908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:48:26.039269
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/06/48/image_17082025_06_48_45_10211.jpg', 2), ('/mnt/data/17082025/06/48/image_17082025_06_48_24_10254.jpg', 2), ('/mnt/data/17082025/06/47/image_17082025_06_47_55_10218.jpg', 2), ('/mnt/data/17082025/06/47/image_17082025_06_47_45_10205.jpg', 2), ('/mnt/data/17082025/06/47/image_17082025_06_47_24_9020.jpg', 2), ('/mnt/data/17082025/06/46/image_17082025_06_47_05_10282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9ccd908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9ccd908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9ccd908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:49:38.208134
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb512a898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb512a898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb512a898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:50:50.385625
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8776d860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8776d860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8776d860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 06:52:03.211000
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/06/51/image_17082025_06_51_25_10238.jpg', 2), ('/mnt/data/17082025/06/51/image_17082025_06_51_15_10276.jpg', 2), ('/mnt/data/17082025/06/50/image_17082025_06_50_55_10210.jpg', 2), ('/mnt/data/17082025/06/50/image_17082025_06_50_14_9007.jpg', 2), ('/mnt/data/17082025/06/49/image_17082025_06_50_05_10316.jpg', 2), ('/mnt/data/17082025/06/49/image_17082025_06_49_55_10001.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f884c2978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f884c2978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f884c2978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:53:14.925757
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/06/53/image_17082025_06_53_35_10203.jpg', 2), ('/mnt/data/17082025/06/52/image_17082025_06_52_15_10229.jpg', 2), ('/mnt/data/17082025/06/51/image_17082025_06_51_35_10189.jpg', 2), ('/mnt/data/17082025/06/51/image_17082025_06_51_25_10238.jpg', 2), ('/mnt/data/17082025/06/51/image_17082025_06_51_15_10276.jpg', 2), ('/mnt/data/17082025/06/50/image_17082025_06_50_55_10210.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b4b9908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b4b9908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b4b9908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:54:26.283497
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/06/54/image_17082025_06_54_25_10230.jpg', 2), ('/mnt/data/17082025/06/54/image_17082025_06_54_15_10298.jpg', 2), ('/mnt/data/17082025/06/53/image_17082025_06_54_05_10258.jpg', 2), ('/mnt/data/17082025/06/53/image_17082025_06_53_44_8992.jpg', 2), ('/mnt/data/17082025/06/53/image_17082025_06_53_35_10203.jpg', 2), ('/mnt/data/17082025/06/52/image_17082025_06_52_15_10229.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a61c908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a61c908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a61c908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:55:38.413029
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9b93898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9b93898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9b93898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:56:50.558411
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
 val : 1 : upload photos already in processing! 
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa145a860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa145a860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa145a860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 06:57:50.778294
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 06:59:02.531565
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/06/55/image_17082025_06_55_44_9258.jpg', 2), ('/mnt/data/17082025/06/54/image_17082025_06_55_04_9069.jpg', 2), ('/mnt/data/17082025/06/54/image_17082025_06_54_45_10245.jpg', 2), ('/mnt/data/17082025/06/54/image_17082025_06_54_25_10230.jpg', 2), ('/mnt/data/17082025/06/54/image_17082025_06_54_15_10298.jpg', 2), ('/mnt/data/17082025/06/53/image_17082025_06_54_05_10258.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86b79978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86b79978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86b79978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:00:14.086606
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/07/00/image_17082025_07_00_25_10209.jpg', 2), ('/mnt/data/17082025/07/00/image_17082025_07_00_14_9111.jpg', 2), ('/mnt/data/17082025/06/59/image_17082025_07_00_05_10389.jpg', 2), ('/mnt/data/17082025/06/59/image_17082025_06_59_55_10241.jpg', 2), ('/mnt/data/17082025/06/59/image_17082025_06_59_45_10199.jpg', 2), ('/mnt/data/17082025/06/59/image_17082025_06_59_34_8986.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cf25908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cf25908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cf25908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:01:26.171223
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/07/00/image_17082025_07_00_45_10227.jpg', 2), ('/mnt/data/17082025/07/00/image_17082025_07_00_25_10209.jpg', 2), ('/mnt/data/17082025/07/00/image_17082025_07_00_14_9111.jpg', 2), ('/mnt/data/17082025/06/59/image_17082025_07_00_05_10389.jpg', 2), ('/mnt/data/17082025/06/59/image_17082025_06_59_55_10241.jpg', 2), ('/mnt/data/17082025/06/59/image_17082025_06_59_45_10199.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f915bf908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f915bf908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f915bf908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:02:38.315658
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b1ed898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b1ed898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b1ed898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:03:50.417780
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f1e8860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f1e8860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f1e8860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 07:05:03.286570
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/07/04/image_17082025_07_04_45_10193.jpg', 2), ('/mnt/data/17082025/07/04/image_17082025_07_04_25_10188.jpg', 2), ('/mnt/data/17082025/07/03/image_17082025_07_03_55_10243.jpg', 2), ('/mnt/data/17082025/07/03/image_17082025_07_03_35_10202.jpg', 2), ('/mnt/data/17082025/07/02/image_17082025_07_02_25_10232.jpg', 2), ('/mnt/data/17082025/07/02/image_17082025_07_02_15_10265.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bbc9908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bbc9908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bbc9908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:06:13.910795
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/07/06/image_17082025_07_06_34_8973.jpg', 2), ('/mnt/data/17082025/07/06/image_17082025_07_06_25_10200.jpg', 2), ('/mnt/data/17082025/07/06/image_17082025_07_06_15_10270.jpg', 2), ('/mnt/data/17082025/07/05/image_17082025_07_06_05_10445.jpg', 2), ('/mnt/data/17082025/07/05/image_17082025_07_05_54_10189.jpg', 2), ('/mnt/data/17082025/07/05/image_17082025_07_05_44_8981.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa930d898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa930d898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa930d898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:07:25.954246
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/07/07/image_17082025_07_07_24_9065.jpg', 2), ('/mnt/data/17082025/07/07/image_17082025_07_07_15_10263.jpg', 2), ('/mnt/data/17082025/07/06/image_17082025_07_06_55_10210.jpg', 2), ('/mnt/data/17082025/07/06/image_17082025_07_06_34_8973.jpg', 2), ('/mnt/data/17082025/07/06/image_17082025_07_06_25_10200.jpg', 2), ('/mnt/data/17082025/07/06/image_17082025_07_06_15_10270.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa31b8908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa31b8908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa31b8908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:08:38.054567
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f765d4898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f765d4898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f765d4898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:09:50.194596
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91cd6860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91cd6860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91cd6860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 07:11:03.058375
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/07/09/image_17082025_07_09_54_9214.jpg', 2), ('/mnt/data/17082025/07/09/image_17082025_07_09_35_10222.jpg', 2), ('/mnt/data/17082025/07/09/image_17082025_07_09_25_10206.jpg', 2), ('/mnt/data/17082025/07/09/image_17082025_07_09_15_10208.jpg', 2), ('/mnt/data/17082025/07/08/image_17082025_07_09_04_8997.jpg', 2), ('/mnt/data/17082025/07/08/image_17082025_07_08_35_10248.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7701a908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7701a908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7701a908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:12:14.654601
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/07/12/image_17082025_07_12_45_10194.jpg', 2), ('/mnt/data/17082025/07/12/image_17082025_07_12_25_10278.jpg', 2), ('/mnt/data/17082025/07/12/image_17082025_07_12_14_9486.jpg', 2), ('/mnt/data/17082025/07/11/image_17082025_07_11_44_9009.jpg', 2), ('/mnt/data/17082025/07/11/image_17082025_07_11_35_10212.jpg', 2), ('/mnt/data/17082025/07/11/image_17082025_07_11_25_10182.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76b9e898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76b9e898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76b9e898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:13:26.757964
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/07/13/image_17082025_07_13_35_10224.jpg', 2), ('/mnt/data/17082025/07/13/image_17082025_07_13_25_10248.jpg', 2), ('/mnt/data/17082025/07/13/image_17082025_07_13_15_10234.jpg', 2), ('/mnt/data/17082025/07/12/image_17082025_07_12_55_10193.jpg', 2), ('/mnt/data/17082025/07/12/image_17082025_07_12_45_10194.jpg', 2), ('/mnt/data/17082025/07/12/image_17082025_07_12_25_10278.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b9b5908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b9b5908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b9b5908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:14:14.027847
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/07/13/image_17082025_07_13_45_10212.jpg', 2), ('/mnt/data/17082025/07/13/image_17082025_07_13_35_10224.jpg', 2), ('/mnt/data/17082025/07/13/image_17082025_07_13_25_10248.jpg', 2), ('/mnt/data/17082025/07/13/image_17082025_07_13_15_10234.jpg', 2), ('/mnt/data/17082025/07/12/image_17082025_07_12_55_10193.jpg', 2), ('/mnt/data/17082025/07/12/image_17082025_07_12_45_10194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa61c9908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa61c9908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa61c9908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:15:26.062316
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/07/14/image_17082025_07_14_25_10372.jpg', 2), ('/mnt/data/17082025/07/13/image_17082025_07_13_45_10212.jpg', 2), ('/mnt/data/17082025/07/13/image_17082025_07_13_35_10224.jpg', 2), ('/mnt/data/17082025/07/13/image_17082025_07_13_25_10248.jpg', 2), ('/mnt/data/17082025/07/13/image_17082025_07_13_15_10234.jpg', 2), ('/mnt/data/17082025/07/12/image_17082025_07_12_55_10193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90fd0908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90fd0908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90fd0908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:16:38.173965
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8584a898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8584a898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8584a898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:17:50.301633
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac1a97f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac1a97f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac1a97f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 07:19:03.316957
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 286, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:19:14.598966
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/07/19/image_17082025_07_19_45_10202.jpg', 2), ('/mnt/data/17082025/07/19/image_17082025_07_19_35_10220.jpg', 2), ('/mnt/data/17082025/07/18/image_17082025_07_19_05_10456.jpg', 2), ('/mnt/data/17082025/07/18/image_17082025_07_18_55_10521.jpg', 2), ('/mnt/data/17082025/07/18/image_17082025_07_18_46_9018.jpg', 2), ('/mnt/data/17082025/07/18/image_17082025_07_18_35_10234.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96751908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96751908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96751908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:20:26.708531
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/07/20/image_17082025_07_20_44_8983.jpg', 2), ('/mnt/data/17082025/07/20/image_17082025_07_20_35_10225.jpg', 2), ('/mnt/data/17082025/07/20/image_17082025_07_20_15_10253.jpg', 2), ('/mnt/data/17082025/07/19/image_17082025_07_20_05_9401.jpg', 2), ('/mnt/data/17082025/07/19/image_17082025_07_19_55_10205.jpg', 2), ('/mnt/data/17082025/07/19/image_17082025_07_19_45_10202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9755a908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9755a908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9755a908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:21:38.149292
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1fe7898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1fe7898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1fe7898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:22:50.627000
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3a41860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3a41860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3a41860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 07:24:02.504050
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/07/23/image_17082025_07_23_35_10214.jpg', 2), ('/mnt/data/17082025/07/23/image_17082025_07_23_15_10282.jpg', 2), ('/mnt/data/17082025/07/22/image_17082025_07_23_05_10462.jpg', 2), ('/mnt/data/17082025/07/22/image_17082025_07_22_55_10204.jpg', 2), ('/mnt/data/17082025/07/22/image_17082025_07_22_44_9023.jpg', 2), ('/mnt/data/17082025/07/22/image_17082025_07_22_26_9015.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87307978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87307978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87307978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:25:14.110212
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/07/25/image_17082025_07_25_45_10202.jpg', 2), ('/mnt/data/17082025/07/25/image_17082025_07_25_25_10719.jpg', 2), ('/mnt/data/17082025/07/25/image_17082025_07_25_14_8984.jpg', 2), ('/mnt/data/17082025/07/24/image_17082025_07_25_05_10238.jpg', 2), ('/mnt/data/17082025/07/24/image_17082025_07_24_55_10183.jpg', 2), ('/mnt/data/17082025/07/24/image_17082025_07_24_35_10193.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2d8b908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2d8b908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2d8b908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:26:26.248367
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/07/26/image_17082025_07_26_25_10206.jpg', 2), ('/mnt/data/17082025/07/26/image_17082025_07_26_15_10242.jpg', 2), ('/mnt/data/17082025/07/25/image_17082025_07_25_54_8991.jpg', 2), ('/mnt/data/17082025/07/25/image_17082025_07_25_45_10202.jpg', 2), ('/mnt/data/17082025/07/25/image_17082025_07_25_25_10719.jpg', 2), ('/mnt/data/17082025/07/25/image_17082025_07_25_14_8984.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f898f7908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f898f7908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f898f7908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:27:38.394195
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 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 www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 07:29:03.523938
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/07/28/image_17082025_07_28_34_8982.jpg', 2), ('/mnt/data/17082025/07/28/image_17082025_07_28_25_10240.jpg', 2), ('/mnt/data/17082025/07/27/image_17082025_07_27_55_10190.jpg', 2), ('/mnt/data/17082025/07/27/image_17082025_07_27_45_10236.jpg', 2), ('/mnt/data/17082025/07/26/image_17082025_07_27_05_10281.jpg', 2), ('/mnt/data/17082025/07/26/image_17082025_07_26_54_10251.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5441908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5441908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5441908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:30:14.152143
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/07/30/image_17082025_07_30_18_9078.jpg', 2), ('/mnt/data/17082025/07/29/image_17082025_07_30_05_10307.jpg', 2), ('/mnt/data/17082025/07/29/image_17082025_07_29_15_10250.jpg', 2), ('/mnt/data/17082025/07/28/image_17082025_07_29_05_10358.jpg', 2), ('/mnt/data/17082025/07/28/image_17082025_07_28_55_10193.jpg', 2), ('/mnt/data/17082025/07/28/image_17082025_07_28_34_8982.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf865908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf865908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf865908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:31:26.184755
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/07/31/image_17082025_07_31_35_10203.jpg', 2), ('/mnt/data/17082025/07/31/image_17082025_07_31_24_10221.jpg', 2), ('/mnt/data/17082025/07/31/image_17082025_07_31_14_9024.jpg', 2), ('/mnt/data/17082025/07/30/image_17082025_07_31_05_10338.jpg', 2), ('/mnt/data/17082025/07/30/image_17082025_07_30_34_8979.jpg', 2), ('/mnt/data/17082025/07/30/image_17082025_07_30_18_9078.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ee90908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ee90908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ee90908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:32:38.301787
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ba2b898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ba2b898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ba2b898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:33:49.948396
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f908cd860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f908cd860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f908cd860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 07:35:02.905576
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/07/34/image_17082025_07_34_35_10339.jpg', 2), ('/mnt/data/17082025/07/34/image_17082025_07_34_25_10233.jpg', 2), ('/mnt/data/17082025/07/33/image_17082025_07_33_55_10223.jpg', 2), ('/mnt/data/17082025/07/33/image_17082025_07_33_24_9069.jpg', 2), ('/mnt/data/17082025/07/32/image_17082025_07_33_05_10411.jpg', 2), ('/mnt/data/17082025/07/32/image_17082025_07_32_55_10233.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86539978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86539978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86539978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:36:14.618499
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/07/36/image_17082025_07_36_15_10499.jpg', 2), ('/mnt/data/17082025/07/35/image_17082025_07_36_05_10275.jpg', 2), ('/mnt/data/17082025/07/35/image_17082025_07_35_54_10221.jpg', 2), ('/mnt/data/17082025/07/35/image_17082025_07_35_44_9012.jpg', 2), ('/mnt/data/17082025/07/35/image_17082025_07_35_35_10273.jpg', 2), ('/mnt/data/17082025/07/35/image_17082025_07_35_25_10284.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2bdb908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2bdb908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2bdb908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:37:26.667728
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/07/37/image_17082025_07_37_25_11072.jpg', 2), ('/mnt/data/17082025/07/36/image_17082025_07_37_05_10228.jpg', 2), ('/mnt/data/17082025/07/36/image_17082025_07_36_24_9027.jpg', 2), ('/mnt/data/17082025/07/36/image_17082025_07_36_15_10499.jpg', 2), ('/mnt/data/17082025/07/35/image_17082025_07_36_05_10275.jpg', 2), ('/mnt/data/17082025/07/35/image_17082025_07_35_54_10221.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1e34908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1e34908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1e34908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:38:38.923336
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90c69898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90c69898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90c69898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:39:50.082095
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93c71860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93c71860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93c71860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 07:41:02.825293
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/07/40/image_17082025_07_40_45_10207.jpg', 2), ('/mnt/data/17082025/07/40/image_17082025_07_40_35_10242.jpg', 2), ('/mnt/data/17082025/07/40/image_17082025_07_40_25_10361.jpg', 2), ('/mnt/data/17082025/07/40/image_17082025_07_40_14_8994.jpg', 2), ('/mnt/data/17082025/07/39/image_17082025_07_39_55_9550.jpg', 2), ('/mnt/data/17082025/07/39/image_17082025_07_39_46_10241.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa81cb978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa81cb978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa81cb978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:42:14.482034
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/07/42/image_17082025_07_42_45_10273.jpg', 2), ('/mnt/data/17082025/07/42/image_17082025_07_42_34_9051.jpg', 2), ('/mnt/data/17082025/07/42/image_17082025_07_42_15_10288.jpg', 2), ('/mnt/data/17082025/07/41/image_17082025_07_42_05_10510.jpg', 2), ('/mnt/data/17082025/07/41/image_17082025_07_41_35_10221.jpg', 2), ('/mnt/data/17082025/07/41/image_17082025_07_41_25_10240.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7418908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7418908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7418908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:43:26.628483
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/07/43/image_17082025_07_43_25_10299.jpg', 2), ('/mnt/data/17082025/07/43/image_17082025_07_43_14_9103.jpg', 2), ('/mnt/data/17082025/07/42/image_17082025_07_43_05_10371.jpg', 2), ('/mnt/data/17082025/07/42/image_17082025_07_42_55_10235.jpg', 2), ('/mnt/data/17082025/07/42/image_17082025_07_42_45_10273.jpg', 2), ('/mnt/data/17082025/07/42/image_17082025_07_42_34_9051.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb117e908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb117e908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb117e908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:44:37.850297
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87f31828>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87f31828>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87f31828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:45:50.005413
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f946f0860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f946f0860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f946f0860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 07:47:02.959581
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/07/46/image_17082025_07_46_35_10251.jpg', 2), ('/mnt/data/17082025/07/46/image_17082025_07_46_25_10266.jpg', 2), ('/mnt/data/17082025/07/46/image_17082025_07_46_14_9041.jpg', 2), ('/mnt/data/17082025/07/45/image_17082025_07_46_05_10392.jpg', 2), ('/mnt/data/17082025/07/45/image_17082025_07_45_55_10209.jpg', 2), ('/mnt/data/17082025/07/45/image_17082025_07_45_15_10239.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faba68978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faba68978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faba68978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:48:14.452683
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/07/48/image_17082025_07_48_45_10229.jpg', 2), ('/mnt/data/17082025/07/48/image_17082025_07_48_35_10207.jpg', 2), ('/mnt/data/17082025/07/48/image_17082025_07_48_14_10251.jpg', 2), ('/mnt/data/17082025/07/47/image_17082025_07_47_34_9423.jpg', 2), ('/mnt/data/17082025/07/47/image_17082025_07_47_25_10356.jpg', 2), ('/mnt/data/17082025/07/47/image_17082025_07_47_15_10262.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faab92898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faab92898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faab92898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 07:49:03.252814
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/07/48/image_17082025_07_48_45_10229.jpg', 2), ('/mnt/data/17082025/07/48/image_17082025_07_48_35_10207.jpg', 2), ('/mnt/data/17082025/07/48/image_17082025_07_48_14_10251.jpg', 2), ('/mnt/data/17082025/07/47/image_17082025_07_47_34_9423.jpg', 2), ('/mnt/data/17082025/07/47/image_17082025_07_47_25_10356.jpg', 2), ('/mnt/data/17082025/07/47/image_17082025_07_47_15_10262.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bb9e978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bb9e978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bb9e978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:49:50.580092
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f917f3860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f917f3860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f917f3860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 07:51:02.507958
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/07/50/image_17082025_07_50_25_10234.jpg', 2), ('/mnt/data/17082025/07/50/image_17082025_07_50_15_10274.jpg', 2), ('/mnt/data/17082025/07/49/image_17082025_07_50_05_10452.jpg', 2), ('/mnt/data/17082025/07/49/image_17082025_07_49_54_10192.jpg', 2), ('/mnt/data/17082025/07/49/image_17082025_07_49_44_8982.jpg', 2), ('/mnt/data/17082025/07/49/image_17082025_07_49_15_10296.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88337908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88337908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88337908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:52:14.028979
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/07/51/image_17082025_07_52_05_10351.jpg', 2), ('/mnt/data/17082025/07/51/image_17082025_07_51_55_10180.jpg', 2), ('/mnt/data/17082025/07/51/image_17082025_07_51_45_10181.jpg', 2), ('/mnt/data/17082025/07/50/image_17082025_07_51_05_10229.jpg', 2), ('/mnt/data/17082025/07/50/image_17082025_07_50_55_10228.jpg', 2), ('/mnt/data/17082025/07/50/image_17082025_07_50_25_10234.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79966908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79966908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79966908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:53:27.997072
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/07/53/image_17082025_07_53_45_10222.jpg', 2), ('/mnt/data/17082025/07/53/image_17082025_07_53_14_8997.jpg', 2), ('/mnt/data/17082025/07/52/image_17082025_07_52_14_9041.jpg', 2), ('/mnt/data/17082025/07/51/image_17082025_07_52_05_10351.jpg', 2), ('/mnt/data/17082025/07/51/image_17082025_07_51_55_10180.jpg', 2), ('/mnt/data/17082025/07/51/image_17082025_07_51_45_10181.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81995908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81995908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81995908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:54:38.254153
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ca48898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ca48898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ca48898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 07:55:50.358583
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1835860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1835860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1835860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 07:57:02.944780
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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 www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 07:59:03.022488
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/07/57/image_17082025_07_57_45_10197.jpg', 2), ('/mnt/data/17082025/07/57/image_17082025_07_57_35_10193.jpg', 2), ('/mnt/data/17082025/07/57/image_17082025_07_57_25_10173.jpg', 2), ('/mnt/data/17082025/07/56/image_17082025_07_57_05_10207.jpg', 2), ('/mnt/data/17082025/07/56/image_17082025_07_56_54_10184.jpg', 2), ('/mnt/data/17082025/07/56/image_17082025_07_56_35_10176.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b773978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b773978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b773978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 08:00:44.824542
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 286, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:00:56.356827
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 286, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 08:01:02.730568
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/07/57/image_17082025_07_57_45_10197.jpg', 2), ('/mnt/data/17082025/07/57/image_17082025_07_57_35_10193.jpg', 2), ('/mnt/data/17082025/07/57/image_17082025_07_57_25_10173.jpg', 2), ('/mnt/data/17082025/07/56/image_17082025_07_57_05_10207.jpg', 2), ('/mnt/data/17082025/07/56/image_17082025_07_56_54_10184.jpg', 2), ('/mnt/data/17082025/07/56/image_17082025_07_56_35_10176.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e9c2978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e9c2978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e9c2978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:02:14.661817
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/08/00/image_17082025_08_00_15_10408.jpg', 2), ('/mnt/data/17082025/07/59/image_17082025_08_00_05_10326.jpg', 2), ('/mnt/data/17082025/07/59/image_17082025_07_59_55_10187.jpg', 2), ('/mnt/data/17082025/07/59/image_17082025_07_59_44_10225.jpg', 2), ('/mnt/data/17082025/07/59/image_17082025_07_59_25_10180.jpg', 2), ('/mnt/data/17082025/07/59/image_17082025_07_59_15_10187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad216908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad216908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad216908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:03:26.679105
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/08/03/image_17082025_08_03_35_10278.jpg', 2), ('/mnt/data/17082025/08/03/image_17082025_08_03_14_10075.jpg', 2), ('/mnt/data/17082025/08/00/image_17082025_08_00_24_8961.jpg', 2), ('/mnt/data/17082025/08/00/image_17082025_08_00_15_10408.jpg', 2), ('/mnt/data/17082025/07/59/image_17082025_08_00_05_10326.jpg', 2), ('/mnt/data/17082025/07/59/image_17082025_07_59_55_10187.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f3d4908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f3d4908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f3d4908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:04:38.775533
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a694898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a694898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a694898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:05:50.026144
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa8fe860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa8fe860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa8fe860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 08:07:02.826742
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/08/06/image_17082025_08_06_45_10265.jpg', 2), ('/mnt/data/17082025/08/06/image_17082025_08_06_24_10261.jpg', 2), ('/mnt/data/17082025/08/05/image_17082025_08_05_55_10196.jpg', 2), ('/mnt/data/17082025/08/05/image_17082025_08_05_45_10191.jpg', 2), ('/mnt/data/17082025/08/05/image_17082025_08_05_34_10233.jpg', 2), ('/mnt/data/17082025/08/05/image_17082025_08_05_24_10190.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8fba978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8fba978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8fba978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:08:14.536100
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/08/08/image_17082025_08_08_24_9052.jpg', 2), ('/mnt/data/17082025/08/07/image_17082025_08_07_44_9024.jpg', 2), ('/mnt/data/17082025/08/07/image_17082025_08_07_25_10230.jpg', 2), ('/mnt/data/17082025/08/06/image_17082025_08_06_54_9006.jpg', 2), ('/mnt/data/17082025/08/06/image_17082025_08_06_45_10265.jpg', 2), ('/mnt/data/17082025/08/06/image_17082025_08_06_24_10261.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f8cc908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f8cc908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f8cc908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:09:28.910856
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/08/09/image_17082025_08_09_35_10691.jpg', 2), ('/mnt/data/17082025/08/09/image_17082025_08_09_24_10048.jpg', 2), ('/mnt/data/17082025/08/08/image_17082025_08_08_44_10253.jpg', 2), ('/mnt/data/17082025/08/08/image_17082025_08_08_24_9052.jpg', 2), ('/mnt/data/17082025/08/07/image_17082025_08_07_44_9024.jpg', 2), ('/mnt/data/17082025/08/07/image_17082025_08_07_25_10230.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c3d8908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c3d8908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c3d8908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:10:38.695618
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6f91898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6f91898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6f91898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:11:50.761663
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79d7e860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79d7e860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79d7e860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 08:13:02.774248
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/08/12/image_17082025_08_12_15_10253.jpg', 2), ('/mnt/data/17082025/08/11/image_17082025_08_12_05_10453.jpg', 2), ('/mnt/data/17082025/08/11/image_17082025_08_11_54_10190.jpg', 2), ('/mnt/data/17082025/08/11/image_17082025_08_11_44_9168.jpg', 2), ('/mnt/data/17082025/08/11/image_17082025_08_11_35_10278.jpg', 2), ('/mnt/data/17082025/08/11/image_17082025_08_11_14_10308.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86b65908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86b65908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86b65908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:14:14.454505
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/08/14/image_17082025_08_14_45_10238.jpg', 2), ('/mnt/data/17082025/08/14/image_17082025_08_14_35_10233.jpg', 2), ('/mnt/data/17082025/08/14/image_17082025_08_14_24_10208.jpg', 2), ('/mnt/data/17082025/08/14/image_17082025_08_14_14_10237.jpg', 2), ('/mnt/data/17082025/08/13/image_17082025_08_14_04_9194.jpg', 2), ('/mnt/data/17082025/08/13/image_17082025_08_13_55_10207.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82cc1940>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82cc1940>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82cc1940>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:15:26.444785
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/08/15/image_17082025_08_15_34_9298.jpg', 2), ('/mnt/data/17082025/08/15/image_17082025_08_15_15_10251.jpg', 2), ('/mnt/data/17082025/08/14/image_17082025_08_14_54_8971.jpg', 2), ('/mnt/data/17082025/08/14/image_17082025_08_14_45_10238.jpg', 2), ('/mnt/data/17082025/08/14/image_17082025_08_14_35_10233.jpg', 2), ('/mnt/data/17082025/08/14/image_17082025_08_14_24_10208.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b58f898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b58f898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b58f898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:16:38.597017
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f883c4898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f883c4898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f883c4898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:17:50.718888
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0efe860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0efe860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0efe860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 08:19:02.792568
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/08/18/image_17082025_08_18_24_9057.jpg', 2), ('/mnt/data/17082025/08/18/image_17082025_08_18_15_10261.jpg', 2), ('/mnt/data/17082025/08/17/image_17082025_08_18_05_10318.jpg', 2), ('/mnt/data/17082025/08/17/image_17082025_08_17_15_10248.jpg', 2), ('/mnt/data/17082025/08/16/image_17082025_08_17_05_10357.jpg', 2), ('/mnt/data/17082025/08/16/image_17082025_08_16_54_10195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2db9978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2db9978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2db9978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:20:14.291998
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/08/19/image_17082025_08_19_34_10196.jpg', 2), ('/mnt/data/17082025/08/19/image_17082025_08_19_24_9028.jpg', 2), ('/mnt/data/17082025/08/18/image_17082025_08_18_45_10261.jpg', 2), ('/mnt/data/17082025/08/18/image_17082025_08_18_24_9057.jpg', 2), ('/mnt/data/17082025/08/18/image_17082025_08_18_15_10261.jpg', 2), ('/mnt/data/17082025/08/17/image_17082025_08_18_05_10318.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88b41908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88b41908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88b41908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:21:26.316291
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/08/19/image_17082025_08_19_34_10196.jpg', 2), ('/mnt/data/17082025/08/19/image_17082025_08_19_24_9028.jpg', 2), ('/mnt/data/17082025/08/18/image_17082025_08_18_45_10261.jpg', 2), ('/mnt/data/17082025/08/18/image_17082025_08_18_24_9057.jpg', 2), ('/mnt/data/17082025/08/18/image_17082025_08_18_15_10261.jpg', 2), ('/mnt/data/17082025/08/17/image_17082025_08_18_05_10318.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9759b908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9759b908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9759b908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:22:38.464820
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7cf30898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cf30898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cf30898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:23:50.603694
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb43f8860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb43f8860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb43f8860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 08:25:02.542363
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/08/24/image_17082025_08_24_34_10200.jpg', 2), ('/mnt/data/17082025/08/24/image_17082025_08_24_24_10203.jpg', 2), ('/mnt/data/17082025/08/24/image_17082025_08_24_14_9050.jpg', 2), ('/mnt/data/17082025/08/23/image_17082025_08_23_24_9038.jpg', 2), ('/mnt/data/17082025/08/22/image_17082025_08_23_05_10241.jpg', 2), ('/mnt/data/17082025/08/22/image_17082025_08_22_44_10201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6822978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6822978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6822978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:26:14.179433
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/08/26/image_17082025_08_26_35_10218.jpg', 2), ('/mnt/data/17082025/08/25/image_17082025_08_25_45_10228.jpg', 2), ('/mnt/data/17082025/08/24/image_17082025_08_24_55_10205.jpg', 2), ('/mnt/data/17082025/08/24/image_17082025_08_24_34_10200.jpg', 2), ('/mnt/data/17082025/08/24/image_17082025_08_24_24_10203.jpg', 2), ('/mnt/data/17082025/08/24/image_17082025_08_24_14_9050.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa975a908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa975a908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa975a908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:27:26.310482
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 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 www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 08:28:03.016891
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/08/27/image_17082025_08_27_14_9040.jpg', 2), ('/mnt/data/17082025/08/26/image_17082025_08_26_55_10227.jpg', 2), ('/mnt/data/17082025/08/26/image_17082025_08_26_35_10218.jpg', 2), ('/mnt/data/17082025/08/25/image_17082025_08_25_45_10228.jpg', 2), ('/mnt/data/17082025/08/24/image_17082025_08_24_55_10205.jpg', 2), ('/mnt/data/17082025/08/24/image_17082025_08_24_34_10200.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa97d6908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa97d6908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa97d6908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:29:14.671146
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/08/28/image_17082025_08_28_24_10220.jpg', 2), ('/mnt/data/17082025/08/27/image_17082025_08_28_04_9175.jpg', 2), ('/mnt/data/17082025/08/27/image_17082025_08_27_34_10261.jpg', 2), ('/mnt/data/17082025/08/27/image_17082025_08_27_14_9040.jpg', 2), ('/mnt/data/17082025/08/26/image_17082025_08_26_55_10227.jpg', 2), ('/mnt/data/17082025/08/26/image_17082025_08_26_35_10218.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7605908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7605908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7605908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:30:26.742400
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/08/28/image_17082025_08_28_24_10220.jpg', 2), ('/mnt/data/17082025/08/27/image_17082025_08_28_04_9175.jpg', 2), ('/mnt/data/17082025/08/27/image_17082025_08_27_34_10261.jpg', 2), ('/mnt/data/17082025/08/27/image_17082025_08_27_14_9040.jpg', 2), ('/mnt/data/17082025/08/26/image_17082025_08_26_55_10227.jpg', 2), ('/mnt/data/17082025/08/26/image_17082025_08_26_35_10218.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bcaa898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bcaa898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bcaa898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:31:38.047916
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c785898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c785898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c785898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:32:50.176518
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c7d7860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c7d7860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c7d7860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 08:34:02.956241
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/08/32/image_17082025_08_32_14_10262.jpg', 2), ('/mnt/data/17082025/08/31/image_17082025_08_31_34_10194.jpg', 2), ('/mnt/data/17082025/08/28/image_17082025_08_28_35_10197.jpg', 2), ('/mnt/data/17082025/08/28/image_17082025_08_28_24_10220.jpg', 2), ('/mnt/data/17082025/08/27/image_17082025_08_28_04_9175.jpg', 2), ('/mnt/data/17082025/08/27/image_17082025_08_27_34_10261.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cd79978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cd79978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cd79978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:35:14.694020
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/08/34/image_17082025_08_34_44_10236.jpg', 2), ('/mnt/data/17082025/08/34/image_17082025_08_34_25_10199.jpg', 2), ('/mnt/data/17082025/08/34/image_17082025_08_34_15_10264.jpg', 2), ('/mnt/data/17082025/08/32/image_17082025_08_32_14_10262.jpg', 2), ('/mnt/data/17082025/08/31/image_17082025_08_31_54_10208.jpg', 2), ('/mnt/data/17082025/08/31/image_17082025_08_31_34_10194.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9107f908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9107f908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9107f908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:36:26.026983
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/08/35/image_17082025_08_36_05_10274.jpg', 2), ('/mnt/data/17082025/08/34/image_17082025_08_34_54_10218.jpg', 2), ('/mnt/data/17082025/08/34/image_17082025_08_34_44_10236.jpg', 2), ('/mnt/data/17082025/08/34/image_17082025_08_34_25_10199.jpg', 2), ('/mnt/data/17082025/08/34/image_17082025_08_34_15_10264.jpg', 2), ('/mnt/data/17082025/08/32/image_17082025_08_32_14_10262.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa64f1908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa64f1908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa64f1908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:37:38.153779
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f936eb898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f936eb898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f936eb898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:38:50.251456
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c0e2860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c0e2860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c0e2860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 08:40:03.001969
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/08/38/image_17082025_08_38_35_10225.jpg', 2), ('/mnt/data/17082025/08/37/image_17082025_08_37_15_10291.jpg', 2), ('/mnt/data/17082025/08/36/image_17082025_08_37_05_9714.jpg', 2), ('/mnt/data/17082025/08/36/image_17082025_08_36_24_9240.jpg', 2), ('/mnt/data/17082025/08/35/image_17082025_08_36_05_10274.jpg', 2), ('/mnt/data/17082025/08/34/image_17082025_08_34_54_10218.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98382978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98382978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98382978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:41:14.750853
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/08/41/image_17082025_08_41_24_9004.jpg', 2), ('/mnt/data/17082025/08/40/image_17082025_08_40_54_10259.jpg', 2), ('/mnt/data/17082025/08/38/image_17082025_08_39_04_9172.jpg', 2), ('/mnt/data/17082025/08/38/image_17082025_08_38_35_10225.jpg', 2), ('/mnt/data/17082025/08/37/image_17082025_08_37_15_10291.jpg', 2), ('/mnt/data/17082025/08/36/image_17082025_08_37_05_9714.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97f43908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97f43908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97f43908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:42:26.307302
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/08/41/image_17082025_08_41_24_9004.jpg', 2), ('/mnt/data/17082025/08/40/image_17082025_08_40_54_10259.jpg', 2), ('/mnt/data/17082025/08/38/image_17082025_08_39_04_9172.jpg', 2), ('/mnt/data/17082025/08/38/image_17082025_08_38_35_10225.jpg', 2), ('/mnt/data/17082025/08/37/image_17082025_08_37_15_10291.jpg', 2), ('/mnt/data/17082025/08/36/image_17082025_08_37_05_9714.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae907908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae907908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae907908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:43:38.485712
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae742828>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae742828>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae742828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:44:50.606999
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f848c7898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f848c7898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f848c7898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 08:46:02.449563
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/08/41/image_17082025_08_41_24_9004.jpg', 2), ('/mnt/data/17082025/08/40/image_17082025_08_40_54_10259.jpg', 2), ('/mnt/data/17082025/08/38/image_17082025_08_39_04_9172.jpg', 2), ('/mnt/data/17082025/08/38/image_17082025_08_38_35_10225.jpg', 2), ('/mnt/data/17082025/08/37/image_17082025_08_37_15_10291.jpg', 2), ('/mnt/data/17082025/08/36/image_17082025_08_37_05_9714.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4317978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4317978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4317978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:47:14.137650
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/08/41/image_17082025_08_41_24_9004.jpg', 2), ('/mnt/data/17082025/08/40/image_17082025_08_40_54_10259.jpg', 2), ('/mnt/data/17082025/08/38/image_17082025_08_39_04_9172.jpg', 2), ('/mnt/data/17082025/08/38/image_17082025_08_38_35_10225.jpg', 2), ('/mnt/data/17082025/08/37/image_17082025_08_37_15_10291.jpg', 2), ('/mnt/data/17082025/08/36/image_17082025_08_37_05_9714.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76e73908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76e73908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76e73908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:48:26.259973
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/08/48/image_17082025_08_48_14_9040.jpg', 2), ('/mnt/data/17082025/08/41/image_17082025_08_41_24_9004.jpg', 2), ('/mnt/data/17082025/08/41/image_17082025_08_41_15_10209.jpg', 2), ('/mnt/data/17082025/08/40/image_17082025_08_40_54_10259.jpg', 2), ('/mnt/data/17082025/08/38/image_17082025_08_39_04_9172.jpg', 2), ('/mnt/data/17082025/08/38/image_17082025_08_38_35_10225.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d7fa908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d7fa908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d7fa908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:49:14.454688
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/08/48/image_17082025_08_48_45_10197.jpg', 2), ('/mnt/data/17082025/08/48/image_17082025_08_48_14_9040.jpg', 2), ('/mnt/data/17082025/08/41/image_17082025_08_41_24_9004.jpg', 2), ('/mnt/data/17082025/08/41/image_17082025_08_41_15_10209.jpg', 2), ('/mnt/data/17082025/08/40/image_17082025_08_40_54_10259.jpg', 2), ('/mnt/data/17082025/08/38/image_17082025_08_39_04_9172.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafa1e908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafa1e908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafa1e908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:50:26.560176
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/08/50/image_17082025_08_50_35_10254.jpg', 2), ('/mnt/data/17082025/08/48/image_17082025_08_48_45_10197.jpg', 2), ('/mnt/data/17082025/08/48/image_17082025_08_48_14_9040.jpg', 2), ('/mnt/data/17082025/08/41/image_17082025_08_41_24_9004.jpg', 2), ('/mnt/data/17082025/08/41/image_17082025_08_41_15_10209.jpg', 2), ('/mnt/data/17082025/08/40/image_17082025_08_40_54_10259.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabc75898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabc75898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabc75898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:51:38.708506
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7550898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7550898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7550898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:52:49.834343
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa591e860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa591e860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa591e860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 08:54:02.713681
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/08/53/image_17082025_08_53_45_10215.jpg', 2), ('/mnt/data/17082025/08/53/image_17082025_08_53_14_9017.jpg', 2), ('/mnt/data/17082025/08/52/image_17082025_08_52_34_10202.jpg', 2), ('/mnt/data/17082025/08/52/image_17082025_08_52_24_9004.jpg', 2), ('/mnt/data/17082025/08/52/image_17082025_08_52_15_10272.jpg', 2), ('/mnt/data/17082025/08/51/image_17082025_08_52_05_10365.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2f86908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2f86908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2f86908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:55:14.369583
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/08/54/image_17082025_08_55_04_10377.jpg', 2), ('/mnt/data/17082025/08/54/image_17082025_08_54_14_10317.jpg', 2), ('/mnt/data/17082025/08/53/image_17082025_08_53_55_10221.jpg', 2), ('/mnt/data/17082025/08/53/image_17082025_08_53_45_10215.jpg', 2), ('/mnt/data/17082025/08/53/image_17082025_08_53_14_9017.jpg', 2), ('/mnt/data/17082025/08/52/image_17082025_08_52_34_10202.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb39d4908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb39d4908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb39d4908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:56:26.386440
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/08/56/image_17082025_08_56_34_10203.jpg', 2), ('/mnt/data/17082025/08/55/image_17082025_08_55_54_10238.jpg', 2), ('/mnt/data/17082025/08/54/image_17082025_08_55_04_10377.jpg', 2), ('/mnt/data/17082025/08/54/image_17082025_08_54_14_10317.jpg', 2), ('/mnt/data/17082025/08/53/image_17082025_08_53_55_10221.jpg', 2), ('/mnt/data/17082025/08/53/image_17082025_08_53_45_10215.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa88c7908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa88c7908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa88c7908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 08:57:38.513708
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 08:59:02.700624
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/08/58/image_17082025_08_58_45_10246.jpg', 2), ('/mnt/data/17082025/08/57/image_17082025_08_57_44_10216.jpg', 2), ('/mnt/data/17082025/08/57/image_17082025_08_57_25_10240.jpg', 2), ('/mnt/data/17082025/08/56/image_17082025_08_57_04_10282.jpg', 2), ('/mnt/data/17082025/08/56/image_17082025_08_56_45_10206.jpg', 2), ('/mnt/data/17082025/08/56/image_17082025_08_56_34_10203.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa629e978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa629e978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa629e978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:00:14.248270
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/08/59/image_17082025_08_59_45_10221.jpg', 2), ('/mnt/data/17082025/08/58/image_17082025_08_58_55_10201.jpg', 2), ('/mnt/data/17082025/08/58/image_17082025_08_58_45_10246.jpg', 2), ('/mnt/data/17082025/08/57/image_17082025_08_57_44_10216.jpg', 2), ('/mnt/data/17082025/08/57/image_17082025_08_57_25_10240.jpg', 2), ('/mnt/data/17082025/08/56/image_17082025_08_57_04_10282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8331c908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8331c908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8331c908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:01:26.393391
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/08/59/image_17082025_08_59_45_10221.jpg', 2), ('/mnt/data/17082025/08/58/image_17082025_08_58_55_10201.jpg', 2), ('/mnt/data/17082025/08/58/image_17082025_08_58_45_10246.jpg', 2), ('/mnt/data/17082025/08/57/image_17082025_08_57_44_10216.jpg', 2), ('/mnt/data/17082025/08/57/image_17082025_08_57_25_10240.jpg', 2), ('/mnt/data/17082025/08/56/image_17082025_08_57_04_10282.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb59b3908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb59b3908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb59b3908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:02:38.552872
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0c0b898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0c0b898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0c0b898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:03:51.361921
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f54b860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f54b860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f54b860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 09:05:03.089375
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/09/04/image_17082025_09_04_24_10233.jpg', 2), ('/mnt/data/17082025/09/03/image_17082025_09_03_35_10193.jpg', 2), ('/mnt/data/17082025/09/03/image_17082025_09_03_15_10216.jpg', 2), ('/mnt/data/17082025/09/00/image_17082025_09_00_14_10230.jpg', 2), ('/mnt/data/17082025/08/59/image_17082025_08_59_45_10221.jpg', 2), ('/mnt/data/17082025/08/58/image_17082025_08_58_55_10201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98d1e978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98d1e978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98d1e978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:06:14.681346
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/09/04/image_17082025_09_04_45_10183.jpg', 2), ('/mnt/data/17082025/09/04/image_17082025_09_04_24_10233.jpg', 2), ('/mnt/data/17082025/09/03/image_17082025_09_03_35_10193.jpg', 2), ('/mnt/data/17082025/09/03/image_17082025_09_03_15_10216.jpg', 2), ('/mnt/data/17082025/09/00/image_17082025_09_00_14_10230.jpg', 2), ('/mnt/data/17082025/08/59/image_17082025_08_59_45_10221.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac063908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac063908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac063908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:07:26.756172
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/09/07/image_17082025_09_07_44_10201.jpg', 2), ('/mnt/data/17082025/09/07/image_17082025_09_07_34_10205.jpg', 2), ('/mnt/data/17082025/09/07/image_17082025_09_07_24_9009.jpg', 2), ('/mnt/data/17082025/09/06/image_17082025_09_07_05_10240.jpg', 2), ('/mnt/data/17082025/09/05/image_17082025_09_05_44_8978.jpg', 2), ('/mnt/data/17082025/09/04/image_17082025_09_04_45_10183.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8853c908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8853c908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8853c908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:08:37.897708
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b5b8898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b5b8898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b5b8898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:09:50.056695
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98934860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98934860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98934860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 09:11:02.811716
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/09/10/image_17082025_09_10_15_10246.jpg', 2), ('/mnt/data/17082025/09/08/image_17082025_09_08_55_10184.jpg', 2), ('/mnt/data/17082025/09/08/image_17082025_09_08_45_10184.jpg', 2), ('/mnt/data/17082025/09/08/image_17082025_09_08_24_10216.jpg', 2), ('/mnt/data/17082025/09/07/image_17082025_09_07_55_10189.jpg', 2), ('/mnt/data/17082025/09/07/image_17082025_09_07_44_10201.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f5d6978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f5d6978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f5d6978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:12:14.603006
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/09/12/image_17082025_09_12_24_10176.jpg', 2), ('/mnt/data/17082025/09/10/image_17082025_09_10_54_10206.jpg', 2), ('/mnt/data/17082025/09/10/image_17082025_09_10_15_10246.jpg', 2), ('/mnt/data/17082025/09/08/image_17082025_09_08_55_10184.jpg', 2), ('/mnt/data/17082025/09/08/image_17082025_09_08_45_10184.jpg', 2), ('/mnt/data/17082025/09/08/image_17082025_09_08_24_10216.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88046898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88046898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88046898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:13:26.630261
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/09/12/image_17082025_09_12_47_10168.jpg', 2), ('/mnt/data/17082025/09/12/image_17082025_09_12_24_10176.jpg', 2), ('/mnt/data/17082025/09/10/image_17082025_09_10_54_10206.jpg', 2), ('/mnt/data/17082025/09/10/image_17082025_09_10_15_10246.jpg', 2), ('/mnt/data/17082025/09/08/image_17082025_09_08_55_10184.jpg', 2), ('/mnt/data/17082025/09/08/image_17082025_09_08_45_10184.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92c17898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92c17898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92c17898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:14:38.331308
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac297898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac297898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac297898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:15:50.408136
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f806b4860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f806b4860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f806b4860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 09:17:03.211603
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/09/14/image_17082025_09_14_44_10171.jpg', 2), ('/mnt/data/17082025/09/13/image_17082025_09_13_14_10225.jpg', 2), ('/mnt/data/17082025/09/12/image_17082025_09_12_47_10168.jpg', 2), ('/mnt/data/17082025/09/12/image_17082025_09_12_24_10176.jpg', 2), ('/mnt/data/17082025/09/10/image_17082025_09_10_54_10206.jpg', 2), ('/mnt/data/17082025/09/10/image_17082025_09_10_15_10246.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5d0e978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5d0e978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5d0e978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:18:13.948722
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/09/18/image_17082025_09_18_14_10315.jpg', 2), ('/mnt/data/17082025/09/17/image_17082025_09_17_47_10219.jpg', 2), ('/mnt/data/17082025/09/15/image_17082025_09_15_14_8962.jpg', 2), ('/mnt/data/17082025/09/14/image_17082025_09_14_44_10171.jpg', 2), ('/mnt/data/17082025/09/13/image_17082025_09_13_14_10225.jpg', 2), ('/mnt/data/17082025/09/12/image_17082025_09_12_47_10168.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8da8d908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8da8d908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8da8d908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:19:25.978533
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/09/18/image_17082025_09_18_14_10315.jpg', 2), ('/mnt/data/17082025/09/17/image_17082025_09_17_47_10219.jpg', 2), ('/mnt/data/17082025/09/15/image_17082025_09_15_14_8962.jpg', 2), ('/mnt/data/17082025/09/14/image_17082025_09_14_44_10171.jpg', 2), ('/mnt/data/17082025/09/13/image_17082025_09_13_14_10225.jpg', 2), ('/mnt/data/17082025/09/12/image_17082025_09_12_47_10168.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96311898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96311898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96311898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:20:38.113972
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0366898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0366898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0366898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:21:50.237323
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa11c1860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa11c1860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa11c1860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 09:23:03.042886
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/09/21/image_17082025_09_21_35_10184.jpg', 2), ('/mnt/data/17082025/09/20/image_17082025_09_21_04_10212.jpg', 2), ('/mnt/data/17082025/09/18/image_17082025_09_18_35_10188.jpg', 2), ('/mnt/data/17082025/09/18/image_17082025_09_18_14_10315.jpg', 2), ('/mnt/data/17082025/09/17/image_17082025_09_17_47_10219.jpg', 2), ('/mnt/data/17082025/09/15/image_17082025_09_15_14_8962.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c1ac978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c1ac978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c1ac978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:24:14.770336
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/09/23/image_17082025_09_23_44_10191.jpg', 2), ('/mnt/data/17082025/09/21/image_17082025_09_21_44_9063.jpg', 2), ('/mnt/data/17082025/09/21/image_17082025_09_21_35_10184.jpg', 2), ('/mnt/data/17082025/09/20/image_17082025_09_21_04_10212.jpg', 2), ('/mnt/data/17082025/09/18/image_17082025_09_18_35_10188.jpg', 2), ('/mnt/data/17082025/09/18/image_17082025_09_18_14_10315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f957c7908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f957c7908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f957c7908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:25:25.816436
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/09/23/image_17082025_09_23_44_10191.jpg', 2), ('/mnt/data/17082025/09/21/image_17082025_09_21_44_9063.jpg', 2), ('/mnt/data/17082025/09/21/image_17082025_09_21_35_10184.jpg', 2), ('/mnt/data/17082025/09/20/image_17082025_09_21_04_10212.jpg', 2), ('/mnt/data/17082025/09/18/image_17082025_09_18_35_10188.jpg', 2), ('/mnt/data/17082025/09/18/image_17082025_09_18_14_10315.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93c49908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93c49908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93c49908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:26:37.919241
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7af49828>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7af49828>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7af49828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:27:50.039095
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 09:28:02.495113
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/09/27/image_17082025_09_27_14_8991.jpg', 2), ('/mnt/data/17082025/09/26/image_17082025_09_26_24_10195.jpg', 2), ('/mnt/data/17082025/09/23/image_17082025_09_24_04_9564.jpg', 2), ('/mnt/data/17082025/09/23/image_17082025_09_23_44_10191.jpg', 2), ('/mnt/data/17082025/09/21/image_17082025_09_21_44_9063.jpg', 2), ('/mnt/data/17082025/09/21/image_17082025_09_21_35_10184.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d6fd908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d6fd908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d6fd908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:29:14.519019
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/09/27/image_17082025_09_27_24_10175.jpg', 2), ('/mnt/data/17082025/09/27/image_17082025_09_27_14_8991.jpg', 2), ('/mnt/data/17082025/09/26/image_17082025_09_26_24_10195.jpg', 2), ('/mnt/data/17082025/09/23/image_17082025_09_24_04_9564.jpg', 2), ('/mnt/data/17082025/09/23/image_17082025_09_23_44_10191.jpg', 2), ('/mnt/data/17082025/09/21/image_17082025_09_21_44_9063.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97e5b898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97e5b898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97e5b898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:30:26.494609
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/09/27/image_17082025_09_27_24_10175.jpg', 2), ('/mnt/data/17082025/09/27/image_17082025_09_27_14_8991.jpg', 2), ('/mnt/data/17082025/09/26/image_17082025_09_26_24_10195.jpg', 2), ('/mnt/data/17082025/09/23/image_17082025_09_24_04_9564.jpg', 2), ('/mnt/data/17082025/09/23/image_17082025_09_23_44_10191.jpg', 2), ('/mnt/data/17082025/09/21/image_17082025_09_21_44_9063.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d700908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d700908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d700908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:31:38.634087
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77aa6898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77aa6898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77aa6898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:32:50.738897
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0e5c860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0e5c860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0e5c860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 09:34:02.547745
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/09/32/image_17082025_09_32_15_10257.jpg', 2), ('/mnt/data/17082025/09/28/image_17082025_09_28_14_10271.jpg', 2), ('/mnt/data/17082025/09/27/image_17082025_09_27_24_10175.jpg', 2), ('/mnt/data/17082025/09/27/image_17082025_09_27_14_8991.jpg', 2), ('/mnt/data/17082025/09/26/image_17082025_09_26_24_10195.jpg', 2), ('/mnt/data/17082025/09/23/image_17082025_09_24_04_9564.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c406978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c406978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c406978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:35:14.271595
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/09/32/image_17082025_09_32_34_10205.jpg', 2), ('/mnt/data/17082025/09/32/image_17082025_09_32_15_10257.jpg', 2), ('/mnt/data/17082025/09/28/image_17082025_09_28_14_10271.jpg', 2), ('/mnt/data/17082025/09/27/image_17082025_09_27_24_10175.jpg', 2), ('/mnt/data/17082025/09/27/image_17082025_09_27_14_8991.jpg', 2), ('/mnt/data/17082025/09/26/image_17082025_09_26_24_10195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79752908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79752908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79752908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:36:26.310761
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/09/32/image_17082025_09_32_34_10205.jpg', 2), ('/mnt/data/17082025/09/32/image_17082025_09_32_15_10257.jpg', 2), ('/mnt/data/17082025/09/28/image_17082025_09_28_14_10271.jpg', 2), ('/mnt/data/17082025/09/27/image_17082025_09_27_24_10175.jpg', 2), ('/mnt/data/17082025/09/27/image_17082025_09_27_14_8991.jpg', 2), ('/mnt/data/17082025/09/26/image_17082025_09_26_24_10195.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb43f5908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb43f5908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb43f5908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:37:38.459802
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa53de8d0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa53de8d0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa53de8d0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:38:50.564958
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99fd5860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99fd5860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99fd5860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 09:40:02.277722
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/09/37/image_17082025_09_37_54_8945.jpg', 2), ('/mnt/data/17082025/09/35/image_17082025_09_35_45_10168.jpg', 2), ('/mnt/data/17082025/09/32/image_17082025_09_32_34_10205.jpg', 2), ('/mnt/data/17082025/09/32/image_17082025_09_32_15_10257.jpg', 2), ('/mnt/data/17082025/09/28/image_17082025_09_28_14_10271.jpg', 2), ('/mnt/data/17082025/09/27/image_17082025_09_27_24_10175.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a708978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a708978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a708978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:41:13.989025
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/09/41/image_17082025_09_41_14_9030.jpg', 2), ('/mnt/data/17082025/09/38/image_17082025_09_38_25_10212.jpg', 2), ('/mnt/data/17082025/09/37/image_17082025_09_37_54_8945.jpg', 2), ('/mnt/data/17082025/09/35/image_17082025_09_35_45_10168.jpg', 2), ('/mnt/data/17082025/09/32/image_17082025_09_32_34_10205.jpg', 2), ('/mnt/data/17082025/09/32/image_17082025_09_32_15_10257.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94335908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94335908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94335908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:42:26.072368
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/09/41/image_17082025_09_42_04_9137.jpg', 2), ('/mnt/data/17082025/09/41/image_17082025_09_41_34_10207.jpg', 2), ('/mnt/data/17082025/09/41/image_17082025_09_41_14_9030.jpg', 2), ('/mnt/data/17082025/09/38/image_17082025_09_38_25_10212.jpg', 2), ('/mnt/data/17082025/09/37/image_17082025_09_37_54_8945.jpg', 2), ('/mnt/data/17082025/09/35/image_17082025_09_35_45_10168.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88c62898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88c62898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88c62898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:43:38.200710
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2f5f898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2f5f898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2f5f898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:44:50.387385
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa204860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa204860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa204860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 09:46:02.750768
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/09/44/image_17082025_09_44_54_10242.jpg', 2), ('/mnt/data/17082025/09/42/image_17082025_09_42_14_10294.jpg', 2), ('/mnt/data/17082025/09/41/image_17082025_09_42_04_9137.jpg', 2), ('/mnt/data/17082025/09/41/image_17082025_09_41_34_10207.jpg', 2), ('/mnt/data/17082025/09/41/image_17082025_09_41_14_9030.jpg', 2), ('/mnt/data/17082025/09/38/image_17082025_09_38_25_10212.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f925aa978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f925aa978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f925aa978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:47:14.444391
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/09/44/image_17082025_09_45_04_10334.jpg', 2), ('/mnt/data/17082025/09/44/image_17082025_09_44_54_10242.jpg', 2), ('/mnt/data/17082025/09/42/image_17082025_09_42_14_10294.jpg', 2), ('/mnt/data/17082025/09/41/image_17082025_09_42_04_9137.jpg', 2), ('/mnt/data/17082025/09/41/image_17082025_09_41_34_10207.jpg', 2), ('/mnt/data/17082025/09/41/image_17082025_09_41_14_9030.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7acbf908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7acbf908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7acbf908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:48:26.727653
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/09/47/image_17082025_09_48_05_10224.jpg', 2), ('/mnt/data/17082025/09/47/image_17082025_09_47_24_8976.jpg', 2), ('/mnt/data/17082025/09/44/image_17082025_09_45_04_10334.jpg', 2), ('/mnt/data/17082025/09/44/image_17082025_09_44_54_10242.jpg', 2), ('/mnt/data/17082025/09/42/image_17082025_09_42_14_10294.jpg', 2), ('/mnt/data/17082025/09/41/image_17082025_09_42_04_9137.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7face7c908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7face7c908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7face7c908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:49:37.894029
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf4c3898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf4c3898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf4c3898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:50:50.028596
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d50a860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d50a860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d50a860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 09:52:02.734198
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/09/50/image_17082025_09_50_34_10258.jpg', 2), ('/mnt/data/17082025/09/50/image_17082025_09_50_24_10228.jpg', 2), ('/mnt/data/17082025/09/48/image_17082025_09_48_24_9000.jpg', 2), ('/mnt/data/17082025/09/47/image_17082025_09_48_05_10224.jpg', 2), ('/mnt/data/17082025/09/47/image_17082025_09_47_24_8976.jpg', 2), ('/mnt/data/17082025/09/44/image_17082025_09_45_04_10334.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79958978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79958978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79958978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:53:14.476781
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/09/50/image_17082025_09_50_34_10258.jpg', 2), ('/mnt/data/17082025/09/50/image_17082025_09_50_24_10228.jpg', 2), ('/mnt/data/17082025/09/48/image_17082025_09_48_24_9000.jpg', 2), ('/mnt/data/17082025/09/47/image_17082025_09_48_05_10224.jpg', 2), ('/mnt/data/17082025/09/47/image_17082025_09_47_24_8976.jpg', 2), ('/mnt/data/17082025/09/44/image_17082025_09_45_04_10334.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e76e908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e76e908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e76e908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:54:26.627354
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/09/50/image_17082025_09_50_34_10258.jpg', 2), ('/mnt/data/17082025/09/50/image_17082025_09_50_24_10228.jpg', 2), ('/mnt/data/17082025/09/48/image_17082025_09_48_24_9000.jpg', 2), ('/mnt/data/17082025/09/47/image_17082025_09_48_05_10224.jpg', 2), ('/mnt/data/17082025/09/47/image_17082025_09_47_24_8976.jpg', 2), ('/mnt/data/17082025/09/44/image_17082025_09_45_04_10334.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80f23908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80f23908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80f23908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:55:38.744393
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96cc6898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96cc6898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96cc6898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 09:56:50.052846
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d675860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d675860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d675860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 09:59:03.265070
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/09/56/image_17082025_09_56_34_10245.jpg', 2), ('/mnt/data/17082025/09/56/image_17082025_09_56_14_9006.jpg', 2), ('/mnt/data/17082025/09/50/image_17082025_09_50_54_9412.jpg', 2), ('/mnt/data/17082025/09/50/image_17082025_09_50_34_10258.jpg', 2), ('/mnt/data/17082025/09/50/image_17082025_09_50_24_10228.jpg', 2), ('/mnt/data/17082025/09/48/image_17082025_09_48_24_9000.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91d74978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91d74978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91d74978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:00:14.773464
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/09/58/image_17082025_09_58_35_10188.jpg', 2), ('/mnt/data/17082025/09/58/image_17082025_09_58_14_10224.jpg', 2), ('/mnt/data/17082025/09/57/image_17082025_09_57_55_10201.jpg', 2), ('/mnt/data/17082025/09/56/image_17082025_09_56_34_10245.jpg', 2), ('/mnt/data/17082025/09/56/image_17082025_09_56_14_9006.jpg', 2), ('/mnt/data/17082025/09/50/image_17082025_09_50_54_9412.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e991908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e991908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e991908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:01:25.930862
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/10/01/image_17082025_10_01_15_10251.jpg', 2), ('/mnt/data/17082025/10/00/image_17082025_10_00_44_10208.jpg', 2), ('/mnt/data/17082025/09/58/image_17082025_09_58_35_10188.jpg', 2), ('/mnt/data/17082025/09/58/image_17082025_09_58_14_10224.jpg', 2), ('/mnt/data/17082025/09/57/image_17082025_09_57_55_10201.jpg', 2), ('/mnt/data/17082025/09/56/image_17082025_09_56_34_10245.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f861fb908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f861fb908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f861fb908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:02:38.052210
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91a0c898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91a0c898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91a0c898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:03:50.193124
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f860b2860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f860b2860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f860b2860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 10:05:03.176929
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/10/02/image_17082025_10_03_04_9112.jpg', 2), ('/mnt/data/17082025/10/02/image_17082025_10_02_34_10222.jpg', 2), ('/mnt/data/17082025/10/01/image_17082025_10_01_54_10182.jpg', 2), ('/mnt/data/17082025/10/01/image_17082025_10_01_15_10251.jpg', 2), ('/mnt/data/17082025/10/00/image_17082025_10_00_44_10208.jpg', 2), ('/mnt/data/17082025/09/58/image_17082025_09_58_35_10188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa111e978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa111e978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa111e978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:06:14.877039
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/10/05/image_17082025_10_06_05_10459.jpg', 2), ('/mnt/data/17082025/10/02/image_17082025_10_03_04_9112.jpg', 2), ('/mnt/data/17082025/10/02/image_17082025_10_02_45_10181.jpg', 2), ('/mnt/data/17082025/10/02/image_17082025_10_02_34_10222.jpg', 2), ('/mnt/data/17082025/10/01/image_17082025_10_01_54_10182.jpg', 2), ('/mnt/data/17082025/10/01/image_17082025_10_01_15_10251.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c823898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c823898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c823898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:07:26.943899
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/10/05/image_17082025_10_06_05_10459.jpg', 2), ('/mnt/data/17082025/10/02/image_17082025_10_03_04_9112.jpg', 2), ('/mnt/data/17082025/10/02/image_17082025_10_02_45_10181.jpg', 2), ('/mnt/data/17082025/10/02/image_17082025_10_02_34_10222.jpg', 2), ('/mnt/data/17082025/10/01/image_17082025_10_01_54_10182.jpg', 2), ('/mnt/data/17082025/10/01/image_17082025_10_01_15_10251.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8636f908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8636f908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8636f908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:08:38.055454
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb486f898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb486f898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb486f898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:09:50.174951
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d93d7f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d93d7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d93d7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 10:11:03.251373
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/10/09/image_17082025_10_09_35_10207.jpg', 2), ('/mnt/data/17082025/10/09/image_17082025_10_09_24_10231.jpg', 2), ('/mnt/data/17082025/10/06/image_17082025_10_06_55_10170.jpg', 2), ('/mnt/data/17082025/10/05/image_17082025_10_06_05_10459.jpg', 2), ('/mnt/data/17082025/10/02/image_17082025_10_03_04_9112.jpg', 2), ('/mnt/data/17082025/10/02/image_17082025_10_02_45_10181.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ccbd978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ccbd978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ccbd978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:12:14.691006
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/10/12/image_17082025_10_12_15_10268.jpg', 2), ('/mnt/data/17082025/10/09/image_17082025_10_09_35_10207.jpg', 2), ('/mnt/data/17082025/10/09/image_17082025_10_09_24_10231.jpg', 2), ('/mnt/data/17082025/10/06/image_17082025_10_06_55_10170.jpg', 2), ('/mnt/data/17082025/10/05/image_17082025_10_06_05_10459.jpg', 2), ('/mnt/data/17082025/10/02/image_17082025_10_03_04_9112.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a679908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a679908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a679908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:13:25.823715
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/10/12/image_17082025_10_12_15_10268.jpg', 2), ('/mnt/data/17082025/10/10/image_17082025_10_10_25_10230.jpg', 2), ('/mnt/data/17082025/10/09/image_17082025_10_09_35_10207.jpg', 2), ('/mnt/data/17082025/10/09/image_17082025_10_09_24_10231.jpg', 2), ('/mnt/data/17082025/10/06/image_17082025_10_06_55_10170.jpg', 2), ('/mnt/data/17082025/10/05/image_17082025_10_06_05_10459.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79a35908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79a35908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79a35908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:14:38.007478
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cef3898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cef3898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cef3898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:15:50.146598
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bf5e860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bf5e860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bf5e860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:16:38.289899
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7472898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7472898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7472898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:17:50.508860
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa36017f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa36017f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa36017f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 10:19:02.373915
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/10/17/image_17082025_10_17_34_10166.jpg', 2), ('/mnt/data/17082025/10/14/image_17082025_10_14_34_10175.jpg', 2), ('/mnt/data/17082025/10/14/image_17082025_10_14_15_10231.jpg', 2), ('/mnt/data/17082025/10/13/image_17082025_10_13_44_10172.jpg', 2), ('/mnt/data/17082025/10/12/image_17082025_10_12_15_10268.jpg', 2), ('/mnt/data/17082025/10/10/image_17082025_10_10_25_10230.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa09b6978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa09b6978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa09b6978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:20:13.971021
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/10/19/image_17082025_10_19_44_10173.jpg', 2), ('/mnt/data/17082025/10/18/image_17082025_10_19_05_10254.jpg', 2), ('/mnt/data/17082025/10/18/image_17082025_10_18_15_10239.jpg', 2), ('/mnt/data/17082025/10/17/image_17082025_10_17_34_10166.jpg', 2), ('/mnt/data/17082025/10/14/image_17082025_10_14_34_10175.jpg', 2), ('/mnt/data/17082025/10/14/image_17082025_10_14_15_10231.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf8c6898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf8c6898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf8c6898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:21:26.093141
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/10/21/image_17082025_10_21_24_10160.jpg', 2), ('/mnt/data/17082025/10/19/image_17082025_10_19_44_10173.jpg', 2), ('/mnt/data/17082025/10/18/image_17082025_10_19_05_10254.jpg', 2), ('/mnt/data/17082025/10/18/image_17082025_10_18_15_10239.jpg', 2), ('/mnt/data/17082025/10/17/image_17082025_10_17_34_10166.jpg', 2), ('/mnt/data/17082025/10/14/image_17082025_10_14_34_10175.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadfb4898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadfb4898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadfb4898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:22:38.243890
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e957898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e957898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e957898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:23:50.395090
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9426a860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9426a860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9426a860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 10:25:02.552386
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/10/21/image_17082025_10_21_24_10160.jpg', 2), ('/mnt/data/17082025/10/20/image_17082025_10_20_45_10185.jpg', 2), ('/mnt/data/17082025/10/19/image_17082025_10_19_44_10173.jpg', 2), ('/mnt/data/17082025/10/18/image_17082025_10_19_05_10254.jpg', 2), ('/mnt/data/17082025/10/18/image_17082025_10_18_15_10239.jpg', 2), ('/mnt/data/17082025/10/17/image_17082025_10_17_34_10166.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa56e3978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa56e3978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa56e3978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:26:14.205232
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/10/25/image_17082025_10_25_15_10204.jpg', 2), ('/mnt/data/17082025/10/24/image_17082025_10_24_54_10165.jpg', 2), ('/mnt/data/17082025/10/21/image_17082025_10_21_24_10160.jpg', 2), ('/mnt/data/17082025/10/20/image_17082025_10_20_45_10185.jpg', 2), ('/mnt/data/17082025/10/19/image_17082025_10_19_44_10173.jpg', 2), ('/mnt/data/17082025/10/18/image_17082025_10_19_05_10254.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c305908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c305908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c305908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:27:26.315000
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 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 www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 10:28:02.859464
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/10/25/image_17082025_10_25_15_10204.jpg', 2), ('/mnt/data/17082025/10/24/image_17082025_10_24_54_10165.jpg', 2), ('/mnt/data/17082025/10/21/image_17082025_10_21_24_10160.jpg', 2), ('/mnt/data/17082025/10/20/image_17082025_10_20_45_10185.jpg', 2), ('/mnt/data/17082025/10/19/image_17082025_10_19_44_10173.jpg', 2), ('/mnt/data/17082025/10/18/image_17082025_10_19_05_10254.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5202978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5202978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5202978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:29:14.722862
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/10/25/image_17082025_10_25_15_10204.jpg', 2), ('/mnt/data/17082025/10/24/image_17082025_10_24_54_10165.jpg', 2), ('/mnt/data/17082025/10/21/image_17082025_10_21_24_10160.jpg', 2), ('/mnt/data/17082025/10/20/image_17082025_10_20_45_10185.jpg', 2), ('/mnt/data/17082025/10/19/image_17082025_10_19_44_10173.jpg', 2), ('/mnt/data/17082025/10/18/image_17082025_10_19_05_10254.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb59e3908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb59e3908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb59e3908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:30:26.753925
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/10/30/image_17082025_10_30_34_9004.jpg', 2), ('/mnt/data/17082025/10/25/image_17082025_10_25_15_10204.jpg', 2), ('/mnt/data/17082025/10/24/image_17082025_10_24_54_10165.jpg', 2), ('/mnt/data/17082025/10/21/image_17082025_10_21_24_10160.jpg', 2), ('/mnt/data/17082025/10/20/image_17082025_10_20_45_10185.jpg', 2), ('/mnt/data/17082025/10/19/image_17082025_10_19_44_10173.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79406908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79406908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79406908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:31:38.215340
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2248828>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2248828>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2248828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:32:50.371315
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91e09860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91e09860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91e09860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 10:34:03.202623
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/10/31/image_17082025_10_32_04_9255.jpg', 2), ('/mnt/data/17082025/10/31/image_17082025_10_31_34_10538.jpg', 2), ('/mnt/data/17082025/10/31/image_17082025_10_31_15_10216.jpg', 2), ('/mnt/data/17082025/10/30/image_17082025_10_30_34_9004.jpg', 2), ('/mnt/data/17082025/10/25/image_17082025_10_26_04_10259.jpg', 2), ('/mnt/data/17082025/10/25/image_17082025_10_25_15_10204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0809978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0809978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0809978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:34:50.647770
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8418c7f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8418c7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8418c7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 10:36:02.395241
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/10/34/image_17082025_10_34_54_10207.jpg', 2), ('/mnt/data/17082025/10/34/image_17082025_10_34_34_8950.jpg', 2), ('/mnt/data/17082025/10/32/image_17082025_10_32_44_9240.jpg', 2), ('/mnt/data/17082025/10/31/image_17082025_10_32_04_9255.jpg', 2), ('/mnt/data/17082025/10/31/image_17082025_10_31_34_10538.jpg', 2), ('/mnt/data/17082025/10/31/image_17082025_10_31_15_10216.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb44ec978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb44ec978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb44ec978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:37:14.122020
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/10/36/image_17082025_10_36_34_10207.jpg', 2), ('/mnt/data/17082025/10/35/image_17082025_10_35_15_10242.jpg', 2), ('/mnt/data/17082025/10/34/image_17082025_10_34_54_10207.jpg', 2), ('/mnt/data/17082025/10/34/image_17082025_10_34_34_8950.jpg', 2), ('/mnt/data/17082025/10/32/image_17082025_10_32_44_9240.jpg', 2), ('/mnt/data/17082025/10/31/image_17082025_10_32_04_9255.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93cd4908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93cd4908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93cd4908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:38:26.191254
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/10/37/image_17082025_10_37_55_10166.jpg', 2), ('/mnt/data/17082025/10/36/image_17082025_10_36_34_10207.jpg', 2), ('/mnt/data/17082025/10/35/image_17082025_10_35_15_10242.jpg', 2), ('/mnt/data/17082025/10/34/image_17082025_10_34_54_10207.jpg', 2), ('/mnt/data/17082025/10/34/image_17082025_10_34_34_8950.jpg', 2), ('/mnt/data/17082025/10/32/image_17082025_10_32_44_9240.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8edcc908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8edcc908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8edcc908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:39:38.346611
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79c17898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79c17898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79c17898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:40:50.474294
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fbeb860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fbeb860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fbeb860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 10:42:03.134965
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/10/39/image_17082025_10_39_45_10166.jpg', 2), ('/mnt/data/17082025/10/37/image_17082025_10_37_55_10166.jpg', 2), ('/mnt/data/17082025/10/36/image_17082025_10_36_34_10207.jpg', 2), ('/mnt/data/17082025/10/35/image_17082025_10_35_15_10242.jpg', 2), ('/mnt/data/17082025/10/34/image_17082025_10_34_54_10207.jpg', 2), ('/mnt/data/17082025/10/34/image_17082025_10_34_34_8950.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80bb4978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80bb4978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80bb4978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:43:14.135162
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/10/39/image_17082025_10_39_45_10166.jpg', 2), ('/mnt/data/17082025/10/37/image_17082025_10_38_04_9280.jpg', 2), ('/mnt/data/17082025/10/37/image_17082025_10_37_55_10166.jpg', 2), ('/mnt/data/17082025/10/36/image_17082025_10_36_34_10207.jpg', 2), ('/mnt/data/17082025/10/35/image_17082025_10_35_15_10242.jpg', 2), ('/mnt/data/17082025/10/34/image_17082025_10_34_54_10207.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f869b8908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f869b8908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f869b8908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:44:26.179616
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/10/39/image_17082025_10_39_45_10166.jpg', 2), ('/mnt/data/17082025/10/37/image_17082025_10_38_04_9280.jpg', 2), ('/mnt/data/17082025/10/37/image_17082025_10_37_55_10166.jpg', 2), ('/mnt/data/17082025/10/36/image_17082025_10_36_34_10207.jpg', 2), ('/mnt/data/17082025/10/35/image_17082025_10_35_15_10242.jpg', 2), ('/mnt/data/17082025/10/34/image_17082025_10_34_54_10207.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0647940>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0647940>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0647940>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:45:38.348183
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84e4a898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84e4a898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84e4a898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:46:50.460112
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79408860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79408860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79408860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 10:48:03.168423
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/10/48/image_17082025_10_48_54_10154.jpg', 2), ('/mnt/data/17082025/10/42/image_17082025_10_42_54_10148.jpg', 2), ('/mnt/data/17082025/10/39/image_17082025_10_39_45_10166.jpg', 2), ('/mnt/data/17082025/10/37/image_17082025_10_38_04_9280.jpg', 2), ('/mnt/data/17082025/10/37/image_17082025_10_37_55_10166.jpg', 2), ('/mnt/data/17082025/10/36/image_17082025_10_36_34_10207.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9ad4908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9ad4908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9ad4908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:48:50.707742
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0c6b860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0c6b860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0c6b860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 10:50:02.404806
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/10/48/image_17082025_10_48_54_10154.jpg', 2), ('/mnt/data/17082025/10/42/image_17082025_10_42_54_10148.jpg', 2), ('/mnt/data/17082025/10/39/image_17082025_10_39_45_10166.jpg', 2), ('/mnt/data/17082025/10/37/image_17082025_10_38_04_9280.jpg', 2), ('/mnt/data/17082025/10/37/image_17082025_10_37_55_10166.jpg', 2), ('/mnt/data/17082025/10/36/image_17082025_10_36_34_10207.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab3d2978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab3d2978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab3d2978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:51:14.207621
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/10/48/image_17082025_10_48_54_10154.jpg', 2), ('/mnt/data/17082025/10/45/image_17082025_10_45_25_10151.jpg', 2), ('/mnt/data/17082025/10/42/image_17082025_10_42_54_10148.jpg', 2), ('/mnt/data/17082025/10/39/image_17082025_10_39_45_10166.jpg', 2), ('/mnt/data/17082025/10/37/image_17082025_10_38_04_9280.jpg', 2), ('/mnt/data/17082025/10/37/image_17082025_10_37_55_10166.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb272a898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb272a898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb272a898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:52:26.283943
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/10/48/image_17082025_10_48_54_10154.jpg', 2), ('/mnt/data/17082025/10/45/image_17082025_10_45_25_10151.jpg', 2), ('/mnt/data/17082025/10/42/image_17082025_10_42_54_10148.jpg', 2), ('/mnt/data/17082025/10/39/image_17082025_10_39_45_10166.jpg', 2), ('/mnt/data/17082025/10/37/image_17082025_10_38_04_9280.jpg', 2), ('/mnt/data/17082025/10/37/image_17082025_10_37_55_10166.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ba5b898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ba5b898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ba5b898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:53:38.418298
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f942f6898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f942f6898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f942f6898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:54:50.526424
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8875f860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8875f860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8875f860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 10:56:02.504462
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/10/48/image_17082025_10_48_54_10154.jpg', 2), ('/mnt/data/17082025/10/45/image_17082025_10_45_25_10151.jpg', 2), ('/mnt/data/17082025/10/42/image_17082025_10_42_54_10148.jpg', 2), ('/mnt/data/17082025/10/39/image_17082025_10_39_45_10166.jpg', 2), ('/mnt/data/17082025/10/37/image_17082025_10_38_04_9280.jpg', 2), ('/mnt/data/17082025/10/37/image_17082025_10_37_55_10166.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa13d4978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa13d4978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa13d4978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 10:57:14.306770
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 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 www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 10:59:02.773167
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/10/48/image_17082025_10_48_54_10154.jpg', 2), ('/mnt/data/17082025/10/45/image_17082025_10_45_25_10151.jpg', 2), ('/mnt/data/17082025/10/42/image_17082025_10_42_54_10148.jpg', 2), ('/mnt/data/17082025/10/39/image_17082025_10_39_45_10166.jpg', 2), ('/mnt/data/17082025/10/37/image_17082025_10_38_04_9280.jpg', 2), ('/mnt/data/17082025/10/37/image_17082025_10_37_55_10166.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b304908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b304908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b304908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:00:14.168878
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/10/48/image_17082025_10_48_54_10154.jpg', 2), ('/mnt/data/17082025/10/45/image_17082025_10_45_25_10151.jpg', 2), ('/mnt/data/17082025/10/42/image_17082025_10_42_54_10148.jpg', 2), ('/mnt/data/17082025/10/39/image_17082025_10_39_45_10166.jpg', 2), ('/mnt/data/17082025/10/37/image_17082025_10_38_04_9280.jpg', 2), ('/mnt/data/17082025/10/37/image_17082025_10_37_55_10166.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac7a2908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac7a2908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac7a2908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:01:26.355850
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/10/48/image_17082025_10_48_54_10154.jpg', 2), ('/mnt/data/17082025/10/45/image_17082025_10_45_25_10151.jpg', 2), ('/mnt/data/17082025/10/42/image_17082025_10_42_54_10148.jpg', 2), ('/mnt/data/17082025/10/39/image_17082025_10_39_45_10166.jpg', 2), ('/mnt/data/17082025/10/37/image_17082025_10_38_04_9280.jpg', 2), ('/mnt/data/17082025/10/37/image_17082025_10_37_55_10166.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabadc908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabadc908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabadc908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:02:38.416697
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a61e898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a61e898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a61e898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:03:50.535834
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83ebd860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83ebd860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83ebd860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 11:05:02.582746
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/11/03/image_17082025_11_03_54_10183.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_35_10180.jpg', 2), ('/mnt/data/17082025/10/51/image_17082025_10_51_54_8990.jpg', 2), ('/mnt/data/17082025/10/48/image_17082025_10_48_54_10154.jpg', 2), ('/mnt/data/17082025/10/45/image_17082025_10_45_25_10151.jpg', 2), ('/mnt/data/17082025/10/42/image_17082025_10_42_54_10148.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6664978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6664978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6664978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:06:14.123670
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/11/03/image_17082025_11_03_54_10183.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_35_10180.jpg', 2), ('/mnt/data/17082025/10/51/image_17082025_10_51_54_8990.jpg', 2), ('/mnt/data/17082025/10/48/image_17082025_10_48_54_10154.jpg', 2), ('/mnt/data/17082025/10/45/image_17082025_10_45_25_10151.jpg', 2), ('/mnt/data/17082025/10/42/image_17082025_10_42_54_10148.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89f50908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89f50908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89f50908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:07:26.264313
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/11/03/image_17082025_11_03_54_10183.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_35_10180.jpg', 2), ('/mnt/data/17082025/10/51/image_17082025_10_51_54_8990.jpg', 2), ('/mnt/data/17082025/10/48/image_17082025_10_48_54_10154.jpg', 2), ('/mnt/data/17082025/10/45/image_17082025_10_45_25_10151.jpg', 2), ('/mnt/data/17082025/10/42/image_17082025_10_42_54_10148.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c40d908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c40d908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c40d908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:08:38.369171
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa45af898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa45af898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa45af898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:09:50.510144
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b74a7f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b74a7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b74a7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 11:11:03.288806
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/11/10/image_17082025_11_10_24_10189.jpg', 2), ('/mnt/data/17082025/11/09/image_17082025_11_09_15_10208.jpg', 2), ('/mnt/data/17082025/11/04/image_17082025_11_04_15_10212.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_54_10183.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_35_10180.jpg', 2), ('/mnt/data/17082025/10/51/image_17082025_10_51_54_8990.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab87f908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab87f908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab87f908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:12:14.166955
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/11/10/image_17082025_11_10_24_10189.jpg', 2), ('/mnt/data/17082025/11/09/image_17082025_11_09_15_10208.jpg', 2), ('/mnt/data/17082025/11/04/image_17082025_11_04_15_10212.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_54_10183.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_35_10180.jpg', 2), ('/mnt/data/17082025/10/51/image_17082025_10_51_54_8990.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f980bc908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f980bc908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f980bc908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:13:26.237958
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/11/10/image_17082025_11_10_24_10189.jpg', 2), ('/mnt/data/17082025/11/09/image_17082025_11_09_15_10208.jpg', 2), ('/mnt/data/17082025/11/04/image_17082025_11_04_15_10212.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_54_10183.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_35_10180.jpg', 2), ('/mnt/data/17082025/10/51/image_17082025_10_51_54_8990.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1840908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1840908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1840908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:14:38.370574
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6f03898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6f03898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6f03898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:15:50.537028
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76bac860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76bac860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76bac860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 11:17:02.470973
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/11/10/image_17082025_11_10_24_10189.jpg', 2), ('/mnt/data/17082025/11/09/image_17082025_11_09_15_10208.jpg', 2), ('/mnt/data/17082025/11/04/image_17082025_11_04_15_10212.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_54_10183.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_35_10180.jpg', 2), ('/mnt/data/17082025/10/51/image_17082025_10_51_54_8990.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafdf6978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafdf6978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafdf6978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:18:14.213855
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/11/10/image_17082025_11_10_24_10189.jpg', 2), ('/mnt/data/17082025/11/09/image_17082025_11_09_15_10208.jpg', 2), ('/mnt/data/17082025/11/04/image_17082025_11_04_15_10212.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_54_10183.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_35_10180.jpg', 2), ('/mnt/data/17082025/10/51/image_17082025_10_51_54_8990.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8135a898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8135a898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8135a898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:19:26.226420
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/11/10/image_17082025_11_10_24_10189.jpg', 2), ('/mnt/data/17082025/11/09/image_17082025_11_09_15_10208.jpg', 2), ('/mnt/data/17082025/11/04/image_17082025_11_04_15_10212.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_54_10183.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_35_10180.jpg', 2), ('/mnt/data/17082025/10/51/image_17082025_10_51_54_8990.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94ce0908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94ce0908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94ce0908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:20:38.360888
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80c8c898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80c8c898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80c8c898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:21:50.566976
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f32a860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f32a860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f32a860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 11:23:02.314616
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/11/10/image_17082025_11_10_24_10189.jpg', 2), ('/mnt/data/17082025/11/09/image_17082025_11_09_15_10208.jpg', 2), ('/mnt/data/17082025/11/04/image_17082025_11_04_15_10212.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_54_10183.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_35_10180.jpg', 2), ('/mnt/data/17082025/10/51/image_17082025_10_51_54_8990.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f774e8978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f774e8978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f774e8978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:24:14.009494
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/11/10/image_17082025_11_10_24_10189.jpg', 2), ('/mnt/data/17082025/11/09/image_17082025_11_09_15_10208.jpg', 2), ('/mnt/data/17082025/11/04/image_17082025_11_04_15_10212.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_54_10183.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_35_10180.jpg', 2), ('/mnt/data/17082025/10/51/image_17082025_10_51_54_8990.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ea15908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ea15908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ea15908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:25:26.131828
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/11/10/image_17082025_11_10_34_10281.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_24_10189.jpg', 2), ('/mnt/data/17082025/11/09/image_17082025_11_09_15_10208.jpg', 2), ('/mnt/data/17082025/11/04/image_17082025_11_04_15_10212.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_54_10183.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_35_10180.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8c89908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8c89908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8c89908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:26:38.530454
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f904af898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f904af898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f904af898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:27:50.676556
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 11:28:02.287260
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/11/10/image_17082025_11_10_34_10281.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_24_10189.jpg', 2), ('/mnt/data/17082025/11/09/image_17082025_11_09_15_10208.jpg', 2), ('/mnt/data/17082025/11/04/image_17082025_11_04_15_10212.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_54_10183.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_35_10180.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facb97978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facb97978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facb97978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:29:14.132387
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/11/10/image_17082025_11_10_34_10281.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_24_10189.jpg', 2), ('/mnt/data/17082025/11/09/image_17082025_11_09_15_10208.jpg', 2), ('/mnt/data/17082025/11/04/image_17082025_11_04_15_10212.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_54_10183.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_35_10180.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf136908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf136908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf136908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:30:26.158710
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/11/10/image_17082025_11_10_34_10281.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_24_10189.jpg', 2), ('/mnt/data/17082025/11/09/image_17082025_11_09_15_10208.jpg', 2), ('/mnt/data/17082025/11/04/image_17082025_11_04_15_10212.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_54_10183.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_35_10180.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa01b5908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa01b5908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa01b5908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:31:38.291753
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5b65828>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5b65828>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5b65828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:32:50.450886
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae95b860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae95b860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae95b860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 11:34:02.678836
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/11/25/image_17082025_11_25_15_10233.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_34_10281.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_24_10189.jpg', 2), ('/mnt/data/17082025/11/09/image_17082025_11_09_15_10208.jpg', 2), ('/mnt/data/17082025/11/04/image_17082025_11_04_15_10212.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_54_10183.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79fd1978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79fd1978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79fd1978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:35:14.415406
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/11/25/image_17082025_11_25_15_10233.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_34_10281.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_24_10189.jpg', 2), ('/mnt/data/17082025/11/09/image_17082025_11_09_15_10208.jpg', 2), ('/mnt/data/17082025/11/04/image_17082025_11_04_15_10212.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_54_10183.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa960d908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa960d908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa960d908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:36:26.435297
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/11/25/image_17082025_11_25_15_10233.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_34_10281.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_24_10189.jpg', 2), ('/mnt/data/17082025/11/09/image_17082025_11_09_15_10208.jpg', 2), ('/mnt/data/17082025/11/04/image_17082025_11_04_15_10212.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_54_10183.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9fc6898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9fc6898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9fc6898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:37:38.551222
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cfed898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cfed898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cfed898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:38:50.658847
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7623860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7623860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7623860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 11:40:02.412538
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/11/25/image_17082025_11_25_15_10233.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_34_10281.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_24_10189.jpg', 2), ('/mnt/data/17082025/11/09/image_17082025_11_09_15_10208.jpg', 2), ('/mnt/data/17082025/11/04/image_17082025_11_04_15_10212.jpg', 2), ('/mnt/data/17082025/11/03/image_17082025_11_03_54_10183.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79ef7978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79ef7978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79ef7978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:41:14.248886
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg', 2), ('/mnt/data/17082025/11/25/image_17082025_11_25_15_10233.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_34_10281.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_24_10189.jpg', 2), ('/mnt/data/17082025/11/09/image_17082025_11_09_15_10208.jpg', 2), ('/mnt/data/17082025/11/04/image_17082025_11_04_15_10212.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7aaf6908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7aaf6908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7aaf6908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:42:26.244307
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg', 2), ('/mnt/data/17082025/11/25/image_17082025_11_25_15_10233.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_34_10281.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_24_10189.jpg', 2), ('/mnt/data/17082025/11/09/image_17082025_11_09_15_10208.jpg', 2), ('/mnt/data/17082025/11/04/image_17082025_11_04_15_10212.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8b17908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8b17908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8b17908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:43:38.383006
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78d46828>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78d46828>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78d46828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:44:50.538894
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4248860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4248860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4248860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 11:46:02.199557
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', 2), ('/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg', 2), ('/mnt/data/17082025/11/25/image_17082025_11_25_15_10233.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_34_10281.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_24_10189.jpg', 2), ('/mnt/data/17082025/11/09/image_17082025_11_09_15_10208.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77366908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77366908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77366908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:47:13.962815
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', 2), ('/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg', 2), ('/mnt/data/17082025/11/25/image_17082025_11_25_15_10233.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_34_10281.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_24_10189.jpg', 2), ('/mnt/data/17082025/11/09/image_17082025_11_09_15_10208.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1c5d908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1c5d908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1c5d908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:48:26.081557
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', 2), ('/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg', 2), ('/mnt/data/17082025/11/25/image_17082025_11_25_15_10233.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_34_10281.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_24_10189.jpg', 2), ('/mnt/data/17082025/11/09/image_17082025_11_09_15_10208.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b511908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b511908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b511908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:49:38.237904
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa163828>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa163828>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa163828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:50:50.380362
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad373860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad373860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad373860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 11:52:03.165724
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', 2), ('/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', 2), ('/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg', 2), ('/mnt/data/17082025/11/25/image_17082025_11_25_15_10233.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_34_10281.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_24_10189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf08b978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf08b978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf08b978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:53:13.877205
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', 2), ('/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', 2), ('/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg', 2), ('/mnt/data/17082025/11/25/image_17082025_11_25_15_10233.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_34_10281.jpg', 2), ('/mnt/data/17082025/11/10/image_17082025_11_10_24_10189.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d4f3908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d4f3908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d4f3908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:54:25.985839
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', 2), ('/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', 2), ('/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', 2), ('/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg', 2), ('/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg', 2), ('/mnt/data/17082025/11/25/image_17082025_11_25_15_10233.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7107908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7107908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7107908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:55:38.128415
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a912898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a912898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a912898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 11:56:50.273388
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f825327f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f825327f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f825327f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 11:59:02.738049
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', 2), ('/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', 2), ('/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', 2), ('/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg', 2), ('/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg', 2), ('/mnt/data/17082025/11/25/image_17082025_11_25_15_10233.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6dbd978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6dbd978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6dbd978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:00:14.239095
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', 2), ('/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', 2), ('/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', 2), ('/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg', 2), ('/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg', 2), ('/mnt/data/17082025/11/25/image_17082025_11_25_15_10233.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa142908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa142908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa142908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:01:26.340248
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/01/image_17082025_12_01_24_10237.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', 2), ('/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', 2), ('/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', 2), ('/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg', 2), ('/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2101908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2101908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2101908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:02:38.433490
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82a46898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82a46898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82a46898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:03:50.574036
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e116860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e116860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e116860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 12:05:02.414781
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/12/01/image_17082025_12_01_24_10237.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', 2), ('/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', 2), ('/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', 2), ('/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg', 2), ('/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e45a978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e45a978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e45a978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:06:14.885578
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/01/image_17082025_12_01_24_10237.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', 2), ('/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', 2), ('/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', 2), ('/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg', 2), ('/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77dcc908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77dcc908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77dcc908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:07:27.494246
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/01/image_17082025_12_01_24_10237.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', 2), ('/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', 2), ('/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', 2), ('/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg', 2), ('/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafcb1940>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafcb1940>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafcb1940>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:08:38.416551
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f894508d0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f894508d0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f894508d0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:09:50.804756
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e8a57f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e8a57f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e8a57f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 12:11:03.423709
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2), ('/mnt/data/17082025/12/01/image_17082025_12_01_24_10237.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_24_10227.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', 2), ('/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', 2), ('/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac9ae978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac9ae978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac9ae978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:12:13.940294
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2), ('/mnt/data/17082025/12/01/image_17082025_12_01_24_10237.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_24_10227.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', 2), ('/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', 2), ('/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d2ed908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d2ed908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d2ed908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:13:26.067552
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2), ('/mnt/data/17082025/12/01/image_17082025_12_01_24_10237.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_24_10227.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', 2), ('/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', 2), ('/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5461908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5461908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5461908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:14:40.313983
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80948898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80948898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80948898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:15:50.389803
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b56b860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b56b860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b56b860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 12:17:03.305813
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2), ('/mnt/data/17082025/12/01/image_17082025_12_01_24_10237.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_24_10227.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', 2), ('/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', 2), ('/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99881978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99881978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99881978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:18:13.831901
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2), ('/mnt/data/17082025/12/09/image_17082025_12_09_15_10222.jpg', 2), ('/mnt/data/17082025/12/01/image_17082025_12_01_24_10237.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_24_10227.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', 2), ('/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2922908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2922908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2922908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:19:25.979472
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2), ('/mnt/data/17082025/12/09/image_17082025_12_09_15_10222.jpg', 2), ('/mnt/data/17082025/12/01/image_17082025_12_01_24_10237.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_24_10227.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8eef6908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8eef6908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8eef6908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:20:38.146626
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80fac898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80fac898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80fac898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:21:50.313783
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa38af860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa38af860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa38af860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 12:23:03.190671
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2), ('/mnt/data/17082025/12/09/image_17082025_12_09_15_10222.jpg', 2), ('/mnt/data/17082025/12/01/image_17082025_12_01_24_10237.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_24_10227.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cd47978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cd47978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cd47978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:24:14.845472
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2), ('/mnt/data/17082025/12/09/image_17082025_12_09_15_10222.jpg', 2), ('/mnt/data/17082025/12/01/image_17082025_12_01_24_10237.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_24_10227.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ded6908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ded6908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ded6908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:25:25.908596
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2), ('/mnt/data/17082025/12/09/image_17082025_12_09_15_10222.jpg', 2), ('/mnt/data/17082025/12/01/image_17082025_12_01_24_10237.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_24_10227.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8eca7898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8eca7898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8eca7898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:26:38.035170
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fdb5898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fdb5898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fdb5898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:27:50.205803
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 12:29:03.286499
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2), ('/mnt/data/17082025/12/09/image_17082025_12_09_15_10222.jpg', 2), ('/mnt/data/17082025/12/01/image_17082025_12_01_24_10237.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c7ce908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c7ce908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c7ce908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:30:14.714289
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2), ('/mnt/data/17082025/12/09/image_17082025_12_09_15_10222.jpg', 2), ('/mnt/data/17082025/12/01/image_17082025_12_01_24_10237.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c2bb908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c2bb908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c2bb908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:31:25.837984
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2), ('/mnt/data/17082025/12/09/image_17082025_12_09_15_10222.jpg', 2), ('/mnt/data/17082025/12/01/image_17082025_12_01_24_10237.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b8e7908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b8e7908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b8e7908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:32:37.961665
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faafde898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faafde898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faafde898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:33:50.100316
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91c8d860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91c8d860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91c8d860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 12:35:03.134264
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2), ('/mnt/data/17082025/12/09/image_17082025_12_09_15_10222.jpg', 2), ('/mnt/data/17082025/12/01/image_17082025_12_01_24_10237.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e235978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e235978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e235978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:36:14.600270
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2), ('/mnt/data/17082025/12/09/image_17082025_12_09_15_10222.jpg', 2), ('/mnt/data/17082025/12/01/image_17082025_12_01_24_10237.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86a21940>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86a21940>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86a21940>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:37:26.703105
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2), ('/mnt/data/17082025/12/09/image_17082025_12_09_15_10222.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76f90908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76f90908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76f90908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:38:37.875458
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f942ac898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f942ac898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f942ac898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:39:50.154482
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b11c860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b11c860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b11c860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 12:41:03.065404
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f807aa978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f807aa978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f807aa978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:42:14.814571
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bf8f908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bf8f908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bf8f908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:43:25.952153
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91426908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91426908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91426908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:44:38.196858
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9563f898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9563f898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9563f898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:45:50.362757
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f909ed860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f909ed860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f909ed860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 12:47:03.227550
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8216d978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8216d978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8216d978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:48:14.747818
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6b5b908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6b5b908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6b5b908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:49:25.849778
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91c33908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91c33908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91c33908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:50:38.004013
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f877ef898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f877ef898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f877ef898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:51:50.159468
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89ea0860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89ea0860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89ea0860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 12:53:03.068695
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d220978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d220978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d220978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:54:14.665237
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89e1a908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89e1a908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89e1a908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:55:26.730683
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81b29908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81b29908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81b29908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:56:37.958712
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f886ef898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f886ef898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f886ef898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 12:57:50.104063
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 12:59:03.387747
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f942aa978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f942aa978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f942aa978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:00:14.744614
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88a8f908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88a8f908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88a8f908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:01:25.891326
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d88e908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d88e908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d88e908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:02:38.558182
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b3c68d0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b3c68d0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b3c68d0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:03:50.657715
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb476f898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb476f898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb476f898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 13:05:02.578776
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c489978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c489978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c489978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:06:14.124448
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e7fe908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e7fe908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e7fe908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:07:26.283393
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa99b7908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa99b7908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa99b7908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:08:38.406703
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf087898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf087898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf087898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:09:50.528334
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c6ce7f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c6ce7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c6ce7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 13:11:02.379035
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f923bb978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f923bb978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f923bb978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:12:13.971926
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8dd34908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dd34908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dd34908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:13:26.074964
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f973a5908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f973a5908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f973a5908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:14:38.218908
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98237898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98237898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98237898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:15:50.399986
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf1bf860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf1bf860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf1bf860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 13:17:02.523862
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4b23978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4b23978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4b23978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:18:14.087406
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/40/image_17082025_12_40_26_10249.jpg', 2), ('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7123898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7123898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7123898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:19:26.828891
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/40/image_17082025_12_40_26_10249.jpg', 2), ('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c0c3908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c0c3908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c0c3908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:20:38.362492
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac5f3828>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac5f3828>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac5f3828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:21:26.525098
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/40/image_17082025_12_40_26_10249.jpg', 2), ('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d6fd898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d6fd898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d6fd898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:22:38.643845
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85e59828>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85e59828>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85e59828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:23:50.765767
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87c74860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87c74860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87c74860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 13:25:03.004752
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg', 2), ('/mnt/data/17082025/13/18/image_17082025_13_18_34_10137.jpg', 2), ('/mnt/data/17082025/12/40/image_17082025_12_40_26_10249.jpg', 2), ('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79822978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79822978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79822978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:26:14.690182
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_22_25_10204.jpg', 2), ('/mnt/data/17082025/13/18/image_17082025_13_18_34_10137.jpg', 2), ('/mnt/data/17082025/12/40/image_17082025_12_40_26_10249.jpg', 2), ('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f773c2908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f773c2908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f773c2908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:27:25.792363
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 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 www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 13:28:02.199782
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_22_25_10204.jpg', 2), ('/mnt/data/17082025/13/18/image_17082025_13_18_34_10137.jpg', 2), ('/mnt/data/17082025/12/40/image_17082025_12_40_26_10249.jpg', 2), ('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f846a8978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f846a8978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f846a8978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:29:14.210135
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_22_25_10204.jpg', 2), ('/mnt/data/17082025/13/18/image_17082025_13_18_34_10137.jpg', 2), ('/mnt/data/17082025/12/40/image_17082025_12_40_26_10249.jpg', 2), ('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d930898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d930898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d930898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:30:26.245210
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_22_25_10204.jpg', 2), ('/mnt/data/17082025/13/18/image_17082025_13_18_34_10137.jpg', 2), ('/mnt/data/17082025/12/40/image_17082025_12_40_26_10249.jpg', 2), ('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f990f7898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f990f7898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f990f7898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:31:14.432611
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_22_25_10204.jpg', 2), ('/mnt/data/17082025/13/18/image_17082025_13_18_34_10137.jpg', 2), ('/mnt/data/17082025/12/40/image_17082025_12_40_26_10249.jpg', 2), ('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dd31898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dd31898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dd31898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:32:26.508265
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_22_25_10204.jpg', 2), ('/mnt/data/17082025/13/18/image_17082025_13_18_34_10137.jpg', 2), ('/mnt/data/17082025/12/40/image_17082025_12_40_26_10249.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77d7e908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77d7e908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77d7e908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:33:38.637004
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8304d828>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8304d828>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8304d828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:34:49.850384
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d55d860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d55d860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d55d860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 13:36:02.537096
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_22_25_10204.jpg', 2), ('/mnt/data/17082025/13/18/image_17082025_13_18_34_10137.jpg', 2), ('/mnt/data/17082025/12/40/image_17082025_12_40_26_10249.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0af9978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0af9978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0af9978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:37:14.375044
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_22_25_10204.jpg', 2), ('/mnt/data/17082025/13/18/image_17082025_13_18_34_10137.jpg', 2), ('/mnt/data/17082025/12/40/image_17082025_12_40_26_10249.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b29a908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b29a908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b29a908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:38:26.411423
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_22_25_10204.jpg', 2), ('/mnt/data/17082025/13/18/image_17082025_13_18_34_10137.jpg', 2), ('/mnt/data/17082025/12/40/image_17082025_12_40_26_10249.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8773b908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8773b908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8773b908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:39:38.554068
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f794f8898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f794f8898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f794f8898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:40:50.686741
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8624d860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8624d860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8624d860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 13:42:02.325959
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_22_25_10204.jpg', 2), ('/mnt/data/17082025/13/18/image_17082025_13_18_34_10137.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facbe0978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facbe0978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facbe0978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:43:14.111088
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_22_25_10204.jpg', 2), ('/mnt/data/17082025/13/18/image_17082025_13_18_34_10137.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f3c9908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f3c9908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f3c9908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:44:26.251772
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_22_25_10204.jpg', 2), ('/mnt/data/17082025/13/18/image_17082025_13_18_34_10137.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a60d908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a60d908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a60d908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:45:38.392536
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78295898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78295898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78295898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:46:50.525804
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9962a860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9962a860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9962a860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 13:48:02.411571
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_22_25_10204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b97b978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b97b978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b97b978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:49:14.203525
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_22_25_10204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b2a8908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b2a8908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b2a8908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:50:26.251283
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83179908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83179908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83179908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:51:38.364558
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3115898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3115898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3115898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:52:50.471520
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89a3d860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89a3d860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89a3d860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 13:54:03.280136
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d575908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d575908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d575908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:55:13.939290
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90463908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90463908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90463908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:56:26.016727
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa54b0908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa54b0908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa54b0908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 13:57:38.149998
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 13:59:03.255069
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fb3c978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fb3c978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fb3c978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:00:14.834841
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f327898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f327898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f327898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:01:25.859285
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa345d908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa345d908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa345d908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:02:37.978919
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78aaf828>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78aaf828>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78aaf828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:03:50.105721
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96810860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96810860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96810860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 14:05:02.897970
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e82f978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e82f978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e82f978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:06:14.599069
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81ea9898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81ea9898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81ea9898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:07:26.706090
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7851c908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7851c908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7851c908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:08:37.814179
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79cb7898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79cb7898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79cb7898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:09:50.048618
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb17667f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb17667f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb17667f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 14:11:02.974137
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96897978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96897978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96897978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:12:14.514175
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88ce6898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88ce6898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88ce6898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:13:26.650245
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93502908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93502908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93502908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:14:38.873680
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadc25898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadc25898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadc25898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:15:49.930848
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7add97f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7add97f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7add97f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 14:17:02.785119
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bce5978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bce5978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bce5978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:18:14.463217
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ea44908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ea44908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ea44908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:19:26.542097
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f892f5908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f892f5908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f892f5908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:20:38.682170
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f995fe828>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f995fe828>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f995fe828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:21:50.748351
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb01e1860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb01e1860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb01e1860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 14:23:02.656308
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a2a2978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a2a2978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a2a2978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:24:14.434379
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f792dc908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f792dc908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f792dc908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:25:26.409100
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c21b908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c21b908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c21b908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:26:38.555400
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b28a828>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b28a828>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b28a828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:27:50.688792
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 14:29:02.561164
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9af7d978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9af7d978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9af7d978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:30:14.414700
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f880d3898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f880d3898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f880d3898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:31:26.448554
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2094908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2094908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2094908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:32:38.557357
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f26c898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f26c898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f26c898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:33:50.710571
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f983667f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f983667f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f983667f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:34:37.870236
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf3a5898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf3a5898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf3a5898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:35:50.035969
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8cca1860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cca1860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cca1860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 14:37:02.367378
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f19f978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f19f978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f19f978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:38:14.617391
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b6b3908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b6b3908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b6b3908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:39:26.655953
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9104a908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9104a908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9104a908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:40:37.964362
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4661828>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4661828>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4661828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:41:50.099498
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f949957f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f949957f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f949957f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 14:43:03.010990
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ea19978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ea19978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ea19978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:44:14.449030
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f888ea908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f888ea908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f888ea908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:45:26.565382
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab3d9908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab3d9908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab3d9908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:46:38.694547
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab1e5898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab1e5898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab1e5898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:47:49.892204
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac3db860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac3db860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac3db860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 14:49:02.719136
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb01e2908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb01e2908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb01e2908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:50:15.204205
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82336898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82336898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82336898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:51:26.199889
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9587b908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9587b908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9587b908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:52:38.349478
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88e9c898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88e9c898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88e9c898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:53:50.470787
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa16187f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa16187f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa16187f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:54:38.632032
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c820898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c820898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c820898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 14:55:50.808479
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4ecb860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4ecb860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4ecb860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 14:57:02.722610
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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 www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 14:59:02.699864
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6831978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6831978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6831978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:00:14.133071
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f799cd908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f799cd908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f799cd908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:01:26.308894
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bec3908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bec3908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bec3908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:02:38.593596
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f861d9828>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f861d9828>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f861d9828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:03:51.603997
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a1c7860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a1c7860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a1c7860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 15:05:02.625425
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 286, in upload_from_sqlite
    limit=limit*nb_batch, order=order, verbose = verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/lib/conn_sqlite.py", line 353, in find_photo_filenames_in_diff_status
    cur.execute(query_select)
sqlite3.OperationalError: database is locked
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:05:14.136496
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/15/02/image_17082025_15_03_04_10137.jpg', 2), ('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3ecb898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3ecb898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3ecb898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:06:26.184493
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/15/02/image_17082025_15_03_04_10137.jpg', 2), ('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf796908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf796908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf796908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:07:38.310149
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae783898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae783898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae783898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:08:50.459241
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d04a7f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d04a7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d04a7f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 15:10:03.136041
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/15/02/image_17082025_15_03_04_10137.jpg', 2), ('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8821e978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8821e978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8821e978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:11:14.018935
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/15/02/image_17082025_15_03_04_10137.jpg', 2), ('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e072908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e072908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e072908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:12:26.005845
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/15/12/image_17082025_15_12_16_10067.jpg', 2), ('/mnt/data/17082025/15/02/image_17082025_15_03_04_10137.jpg', 2), ('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8787a940>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8787a940>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8787a940>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:13:38.149541
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2537898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2537898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2537898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:14:50.265608
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f96a860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f96a860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f96a860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 15:16:02.843715
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/15/12/image_17082025_15_12_16_10067.jpg', 2), ('/mnt/data/17082025/15/02/image_17082025_15_03_04_10137.jpg', 2), ('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bd6a908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bd6a908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bd6a908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:17:14.729774
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/15/12/image_17082025_15_12_16_10067.jpg', 2), ('/mnt/data/17082025/15/02/image_17082025_15_03_04_10137.jpg', 2), ('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7ec6908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7ec6908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7ec6908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:18:25.878066
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/15/12/image_17082025_15_12_16_10067.jpg', 2), ('/mnt/data/17082025/15/02/image_17082025_15_03_04_10137.jpg', 2), ('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98f77908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98f77908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98f77908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:19:38.074601
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ca5b828>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ca5b828>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ca5b828>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:20:50.275886
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f935c87f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f935c87f0>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f935c87f0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 15:22:02.959125
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/15/21/image_17082025_15_21_24_10162.jpg', 2), ('/mnt/data/17082025/15/12/image_17082025_15_12_16_10067.jpg', 2), ('/mnt/data/17082025/15/02/image_17082025_15_03_04_10137.jpg', 2), ('/mnt/data/17082025/14/40/image_17082025_14_40_25_9958.jpg', 2), ('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb577a978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb577a978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb577a978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:23:14.716953
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/15/21/image_17082025_15_21_24_10162.jpg', 2), ('/mnt/data/17082025/15/12/image_17082025_15_12_16_10067.jpg', 2), ('/mnt/data/17082025/15/02/image_17082025_15_03_04_10137.jpg', 2), ('/mnt/data/17082025/14/40/image_17082025_14_40_25_9958.jpg', 2), ('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8dc0e908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dc0e908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dc0e908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:24:25.803320
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/15/21/image_17082025_15_21_24_10162.jpg', 2), ('/mnt/data/17082025/15/12/image_17082025_15_12_16_10067.jpg', 2), ('/mnt/data/17082025/15/02/image_17082025_15_03_04_10137.jpg', 2), ('/mnt/data/17082025/14/40/image_17082025_14_40_25_9958.jpg', 2), ('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab832908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab832908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab832908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:25:38.026509
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c2ab898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c2ab898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c2ab898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:26:50.150046
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95b8e860>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95b8e860>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95b8e860>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 15:28:02.791142
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/15/21/image_17082025_15_21_24_10162.jpg', 2), ('/mnt/data/17082025/15/12/image_17082025_15_12_16_10067.jpg', 2), ('/mnt/data/17082025/15/02/image_17082025_15_03_04_10137.jpg', 2), ('/mnt/data/17082025/14/40/image_17082025_14_40_25_9958.jpg', 2), ('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89eaa978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89eaa978>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89eaa978>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:29:14.007757
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/15/21/image_17082025_15_21_24_10162.jpg', 2), ('/mnt/data/17082025/15/20/image_17082025_15_20_15_10072.jpg', 2), ('/mnt/data/17082025/15/12/image_17082025_15_12_16_10067.jpg', 2), ('/mnt/data/17082025/15/02/image_17082025_15_03_04_10137.jpg', 2), ('/mnt/data/17082025/14/40/image_17082025_14_40_25_9958.jpg', 2), ('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77369908>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77369908>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77369908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:30:25.999753
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/15/30/image_17082025_15_30_34_9910.jpg', 2), ('/mnt/data/17082025/15/28/image_17082025_15_28_15_10145.jpg', 2), ('/mnt/data/17082025/15/21/image_17082025_15_21_24_10162.jpg', 2), ('/mnt/data/17082025/15/20/image_17082025_15_20_15_10072.jpg', 2), ('/mnt/data/17082025/15/12/image_17082025_15_12_16_10067.jpg', 2), ('/mnt/data/17082025/15/02/image_17082025_15_03_04_10137.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c7a5898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c7a5898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c7a5898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:31:38.122131
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 339, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 154, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_17082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f904e2898>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f904e2898>: Failed to establish a new connection: [Errno 111] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 639, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 354, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 178, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f904e2898>: Failed to establish a new connection: [Errno 111] Connection refused',))
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:32:50.271079
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
error with portfolio, creating one with hour/min
Maybe name is duplicate : jetson_test_aec_mm_0225_17082025
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
couldn't create portfolio, exiting...
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
 Status : 500
 Content : b'\n\n<!DOCTYPE html>\n<html>\n\t<head>\n\t\t<title>Error</title>\n\t\t<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAlFJREFUeNqUU8tOFEEUPVVdNV3dPe8xYRBnjGhmBgKjKzCIiQvBoIaNbly5Z+PSv3Aj7DSiP2B0rwkLGVdGgxITSCRIJGSMEQWZR3eVt5sEFBgTb/dN1yvnnHtPNTPG4PqdHgCMXnPRSZrpSuH8vUJu4DE4rYHDGAZDX62BZttHqTiIayM3gGiXQsgYLEvATaqxU+dy1U13YXapXptpNHY8iwn8KyIAzm1KBdtRZWErpI5lEWTXp5Z/vHpZ3/wyKKwYGGOdAYwR0EZwoezTYApBEIObyELl/aE1/83cp40Pt5mxqCKrE4Ck+mVWKKcI5tA8BLEhRBKJLjez6a7MLq7XZtp+yyOawwCBtkiBVZDKzRk4NN7NQBMYPHiZDFhXY+p9ff7F961vVcnl4R5I2ykJ5XFN7Ab7Gc61VoipNBKF+PDyztu5lfrSLT/wIwCxq0CAGtXHZTzqR2jtwQiXONma6hHpj9sLT7YaPxfTXuZdBGA02Wi7FS48YiTfj+i2NhqtdhP5RC8mh2/Op7y0v6eAcWVLFT8D7kWX5S9mepp+C450MV6aWL1cGnvkxbwHtLW2B9AOkLeUd9KEDuh9fl/7CEj7YH5g+3r/lWfF9In7tPz6T4IIwBJOr1SJyIGQMZQbsh5P9uBq5VJtqHh2mo49pdw5WFoEwKWqWHacaWOjQXWGcifKo6vj5RGS6zykI587XeUIQDqJSmAp+lE4qt19W5P9o8+Lma5DcjsC8JiT607lMVkdqQ0Vyh3lHhmh52tfNy78ajXv0rgYzv8nfwswANuk+7sD/Q0aAAAAAElFTkSuQmCC">\n\t    <style>\n\t\t    html, body, pre {\n\t\t        margin: 0;\n\t\t        padding: 0;\n\t\t        font-family: Monaco, \'Lucida Console\', monospace;\n\t\t        background: #ECECEC;\n\t\t    }\n\t\t    h1 {\n\t\t        margin: 0;\n\t\t        background: #A31012;\n\t\t        padding: 20px 45px;\n\t\t        color: #fff;\n\t\t        text-shadow: 1px 1px 1px rgba(0,0,0,.3);\n\t\t        border-bottom: 1px solid #690000;\n\t\t        font-size: 28px;\n\t\t    }\n\t\t    p#detail {\n\t\t        margin: 0;\n\t\t        padding: 15px 45px;\n\t\t        background: #F5A0A0;\n\t\t        border-top: 4px solid #D36D6D;\n\t\t        color: #730000;\n\t\t        text-shadow: 1px 1px 1px rgba(255,255,255,.3);\n\t\t        font-size: 14px;\n\t\t        border-bottom: 1px solid #BA7A7A;\n\t\t    }\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<h1>Oops, an error occured</h1>\n\n\t\t<p id="detail">\n\t\t\tThis exception has been logged with id <strong>8aef00ngd</strong>.\n\t\t</p>\n\n\t</body>\n</html>\n\n\n\n\n\n\n\n'
 All Response : <Response [500]>
 Status : 500
 Content : b'\n\n<!DOCTYPE html>\n<html>\n\t<head>\n\t\t<title>Error</title>\n\t\t<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAlFJREFUeNqUU8tOFEEUPVVdNV3dPe8xYRBnjGhmBgKjKzCIiQvBoIaNbly5Z+PSv3Aj7DSiP2B0rwkLGVdGgxITSCRIJGSMEQWZR3eVt5sEFBgTb/dN1yvnnHtPNTPG4PqdHgCMXnPRSZrpSuH8vUJu4DE4rYHDGAZDX62BZttHqTiIayM3gGiXQsgYLEvATaqxU+dy1U13YXapXptpNHY8iwn8KyIAzm1KBdtRZWErpI5lEWTXp5Z/vHpZ3/wyKKwYGGOdAYwR0EZwoezTYApBEIObyELl/aE1/83cp40Pt5mxqCKrE4Ck+mVWKKcI5tA8BLEhRBKJLjez6a7MLq7XZtp+yyOawwCBtkiBVZDKzRk4NN7NQBMYPHiZDFhXY+p9ff7F961vVcnl4R5I2ykJ5XFN7Ab7Gc61VoipNBKF+PDyztu5lfrSLT/wIwCxq0CAGtXHZTzqR2jtwQiXONma6hHpj9sLT7YaPxfTXuZdBGA02Wi7FS48YiTfj+i2NhqtdhP5RC8mh2/Op7y0v6eAcWVLFT8D7kWX5S9mepp+C450MV6aWL1cGnvkxbwHtLW2B9AOkLeUd9KEDuh9fl/7CEj7YH5g+3r/lWfF9In7tPz6T4IIwBJOr1SJyIGQMZQbsh5P9uBq5VJtqHh2mo49pdw5WFoEwKWqWHacaWOjQXWGcifKo6vj5RGS6zykI587XeUIQDqJSmAp+lE4qt19W5P9o8+Lma5DcjsC8JiT607lMVkdqQ0Vyh3lHhmh52tfNy78ajXv0rgYzv8nfwswANuk+7sD/Q0aAAAAAElFTkSuQmCC">\n\t    <style>\n\t\t    html, body, pre {\n\t\t        margin: 0;\n\t\t        padding: 0;\n\t\t        font-family: Monaco, \'Lucida Console\', monospace;\n\t\t        background: #ECECEC;\n\t\t    }\n\t\t    h1 {\n\t\t        margin: 0;\n\t\t        background: #A31012;\n\t\t        padding: 20px 45px;\n\t\t        color: #fff;\n\t\t        text-shadow: 1px 1px 1px rgba(0,0,0,.3);\n\t\t        border-bottom: 1px solid #690000;\n\t\t        font-size: 28px;\n\t\t    }\n\t\t    p#detail {\n\t\t        margin: 0;\n\t\t        padding: 15px 45px;\n\t\t        background: #F5A0A0;\n\t\t        border-top: 4px solid #D36D6D;\n\t\t        color: #730000;\n\t\t        text-shadow: 1px 1px 1px rgba(255,255,255,.3);\n\t\t        font-size: 14px;\n\t\t        border-bottom: 1px solid #BA7A7A;\n\t\t    }\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<h1>Oops, an error occured</h1>\n\n\t\t<p id="detail">\n\t\t\tThis exception has been logged with id <strong>8aef02g6p</strong>.\n\t\t</p>\n\n\t</body>\n</html>\n\n\n\n\n\n\n\n'
 All Response : <Response [500]>
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 15:34:14.536982
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
False
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 15:59:03.238289
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : jetson_test_aec_mm_0225_17082025
 fc.token : 85213b338a7900a79945692114f14db2
True
533
3551276
533
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/15/48/image_17082025_15_48_54_9938.jpg', 2), ('/mnt/data/17082025/15/41/image_17082025_15_41_55_9945.jpg', 2), ('/mnt/data/17082025/15/40/image_17082025_15_40_34_9961.jpg', 2), ('/mnt/data/17082025/15/39/image_17082025_15_39_44_9982.jpg', 2), ('/mnt/data/17082025/15/30/image_17082025_15_30_34_9910.jpg', 2), ('/mnt/data/17082025/15/30/image_17082025_15_30_14_10361.jpg', 2)]
{'portfolio_id': 26044711, 'actiontaken': ['Created new portfolio'], 'error': 'Photos id not exist !', 'updated_at': 1755439206000}
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/15/48/image_17082025_15_48_54_9938.jpg', '/mnt/data/17082025/15/41/image_17082025_15_41_55_9945.jpg', '/mnt/data/17082025/15/40/image_17082025_15_40_34_9961.jpg', '/mnt/data/17082025/15/39/image_17082025_15_39_44_9982.jpg', '/mnt/data/17082025/15/30/image_17082025_15_30_34_9910.jpg', '/mnt/data/17082025/15/30/image_17082025_15_30_14_10361.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/15/48/image_17082025_15_48_54_9938.jpg', '/mnt/data/17082025/15/41/image_17082025_15_41_55_9945.jpg', '/mnt/data/17082025/15/40/image_17082025_15_40_34_9961.jpg', '/mnt/data/17082025/15/39/image_17082025_15_39_44_9982.jpg', '/mnt/data/17082025/15/30/image_17082025_15_30_34_9910.jpg', '/mnt/data/17082025/15/30/image_17082025_15_30_14_10361.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/15/48/image_17082025_15_48_54_9938.jpg
/mnt/data/17082025/15/41/image_17082025_15_41_55_9945.jpg
/mnt/data/17082025/15/40/image_17082025_15_40_34_9961.jpg
/mnt/data/17082025/15/39/image_17082025_15_39_44_9982.jpg
/mnt/data/17082025/15/30/image_17082025_15_30_34_9910.jpg
/mnt/data/17082025/15/30/image_17082025_15_30_14_10361.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! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1377670976","1377670955","1377670963","1377670960","1377670971","1377670965"],"photo_ids_order":["1377670955","1377670960","1377670963","1377670965","1377670971","1377670976"],"photo_detail":[{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/4c952943cc7730d7b9e44f3205d6457a.jpg","text":"TemporaryFile(/tmp/multipartBody2284437690394080715asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755439223730,"filename":"image_17082025_15_30_14_10361.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/c9464843f635475f2b0a1bda65a9dd4e.jpg","text":"TemporaryFile(/tmp/multipartBody4403468117426517626asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755439223730,"filename":"image_17082025_15_48_54_9938.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/ee94da1ba97323551f832a7f0a589f32.jpg","text":"TemporaryFile(/tmp/multipartBody4860930963808748540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755439223730,"filename":"image_17082025_15_40_34_9961.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/cdfca06ea125a718eca6ea404253749a.jpg","text":"TemporaryFile(/tmp/multipartBody5901259321456724650asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755439223730,"filename":"image_17082025_15_41_55_9945.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/31d2bbec7ffe396cc7d9b4517d98b61a.jpg","text":"TemporaryFile(/tmp/multipartBody8372378587340501868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755439223730,"filename":"image_17082025_15_30_34_9910.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/cfe73261666319264fb3dc6978ed522e.jpg","text":"TemporaryFile(/tmp/multipartBody8127148020830102452asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755439223730,"filename":"image_17082025_15_39_44_9982.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377670963","file1":"1377670960","file0":"1377670955","file4":"1377670971","file5":"1377670976","file3":"1377670965"},"map_files_photo_id_array":[{"photo_id":"1377670976","filename":"file5"},{"photo_id":"1377670963","filename":"file2"},{"photo_id":"1377670971","filename":"file4"},{"photo_id":"1377670960","filename":"file1"},{"photo_id":"1377670955","filename":"file0"},{"photo_id":"1377670965","filename":"file3"}],"portfolio_id":26044711,"hashtag_by_photo_ids":[{"1377670976":["hashtag1","hashtag2"]},{"1377670955":["hashtag1","hashtag2"]},{"1377670963":["hashtag1","hashtag2"]},{"1377670960":["hashtag1","hashtag2"]},{"1377670971":["hashtag1","hashtag2"]},{"1377670965":["hashtag1","hashtag2"]}],"comms":"Portfolio 26044711 used, photo_id : ArrayBuffer(1377670976, 1377670955, 1377670963, 1377670960, 1377670971, 1377670965)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 59.331884145736694 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:00:13.932241
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/15/53/image_17082025_15_53_14_9978.jpg', 2), ('/mnt/data/17082025/15/28/image_17082025_15_28_15_10145.jpg', 2), ('/mnt/data/17082025/15/21/image_17082025_15_21_24_10162.jpg', 2), ('/mnt/data/17082025/15/20/image_17082025_15_20_15_10072.jpg', 2), ('/mnt/data/17082025/15/12/image_17082025_15_12_16_10067.jpg', 2), ('/mnt/data/17082025/15/02/image_17082025_15_03_04_10137.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/15/53/image_17082025_15_53_14_9978.jpg', '/mnt/data/17082025/15/28/image_17082025_15_28_15_10145.jpg', '/mnt/data/17082025/15/21/image_17082025_15_21_24_10162.jpg', '/mnt/data/17082025/15/20/image_17082025_15_20_15_10072.jpg', '/mnt/data/17082025/15/12/image_17082025_15_12_16_10067.jpg', '/mnt/data/17082025/15/02/image_17082025_15_03_04_10137.jpg']
batch 1
begin to post requests
Result OK !
uploaded 6 photos
time to upload: 67.1071891784668 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:01:26.196861
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.18114686012268 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/14/40/image_17082025_14_40_25_9958.jpg', 2), ('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/14/40/image_17082025_14_40_25_9958.jpg', '/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', '/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', '/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', '/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', '/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 16:02:02.766663
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/14/40/image_17082025_14_40_25_9958.jpg', 2), ('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/14/40/image_17082025_14_40_25_9958.jpg', '/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', '/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', '/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', '/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', '/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/14/40/image_17082025_14_40_25_9958.jpg', '/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', '/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', '/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', '/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', '/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/14/40/image_17082025_14_40_25_9958.jpg
/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg
/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg
/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg
/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg
/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.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! 
uploaded 0 photos
time to upload: 139.04667472839355 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Read timed out. (read timeout=120)
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:04:26.607963
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.1821129322052 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/14/40/image_17082025_14_40_25_9958.jpg', 2), ('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/14/40/image_17082025_14_40_25_9958.jpg', '/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', '/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', '/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', '/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', '/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 16:05:03.258948
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/14/40/image_17082025_14_40_25_9958.jpg', 2), ('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/14/40/image_17082025_14_40_25_9958.jpg', '/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', '/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', '/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', '/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', '/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/14/40/image_17082025_14_40_25_9958.jpg', '/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', '/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', '/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', '/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', '/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/14/40/image_17082025_14_40_25_9958.jpg
/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg
/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg
/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg
/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg
/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.21735143661499 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:05:38.754642
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.331238508224487 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', '/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', '/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', '/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', '/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', '/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:06:13.914578
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/14/40/image_17082025_14_40_25_9958.jpg', 2), ('/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', 2), ('/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', 2), ('/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', 2), ('/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', 2), ('/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/14/40/image_17082025_14_40_25_9958.jpg', '/mnt/data/17082025/14/20/image_17082025_14_20_14_10050.jpg', '/mnt/data/17082025/14/08/image_17082025_14_08_55_9997.jpg', '/mnt/data/17082025/14/00/image_17082025_14_00_14_10126.jpg', '/mnt/data/17082025/13/59/image_17082025_13_59_44_9039.jpg', '/mnt/data/17082025/13/57/image_17082025_13_57_35_10273.jpg']
batch 1
begin to post requests
Result OK !
uploaded 6 photos
time to upload: 64.17078590393066 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:07:27.450783
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.180662870407104 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', '/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', '/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', '/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 16:08:02.602226
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', '/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', '/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', '/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', '/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', '/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', '/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg
/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg
/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg
/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg
/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg
/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.189373254776 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:08:38.225742
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20348048210144 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', '/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', '/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', '/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', '/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', '/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:09:14.372546
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.195273876190186 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', '/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', '/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', '/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:09:50.306522
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', 2), ('/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/00/image_17082025_00_00_14_10246.jpg', '/mnt/data/17082025/00/00/image_17082025_00_00_25_10343.jpg', '/mnt/data/17082025/00/00/image_17082025_00_00_45_10252.jpg', '/mnt/data/17082025/00/00/image_17082025_00_00_54_9107.jpg', '/mnt/data/17082025/00/00/image_17082025_00_01_05_10357.jpg', '/mnt/data/17082025/00/01/image_17082025_00_01_26_9002.jpg']
batch 1
begin to post requests
Result OK !
uploaded 6 photos
time to upload: 70.09354519844055 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 16:11:03.103591
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', '/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', '/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', '/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', '/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', '/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', '/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg
/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg
/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg
/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg
/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg
/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 33.83426761627197 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:11:38.572881
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.287079095840454 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/01/image_17082025_00_01_35_10793.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_45_10191.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_02_05_10329.jpg', 2), ('/mnt/data/17082025/00/02/image_17082025_00_02_15_10656.jpg', 2), ('/mnt/data/17082025/00/02/image_17082025_00_02_24_8984.jpg', 2), ('/mnt/data/17082025/00/02/image_17082025_00_02_35_10311.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/01/image_17082025_00_01_35_10793.jpg', '/mnt/data/17082025/00/01/image_17082025_00_01_45_10191.jpg', '/mnt/data/17082025/00/01/image_17082025_00_02_05_10329.jpg', '/mnt/data/17082025/00/02/image_17082025_00_02_15_10656.jpg', '/mnt/data/17082025/00/02/image_17082025_00_02_24_8984.jpg', '/mnt/data/17082025/00/02/image_17082025_00_02_35_10311.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:12:14.754388
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.179551601409912 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/15/59/image_17082025_15_59_24_9966.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/15/59/image_17082025_15_59_24_9966.jpg', '/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', '/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', '/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', '/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:12:50.677180
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 11.893893480300903 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/01/image_17082025_00_01_35_10793.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_45_10191.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_02_05_10329.jpg', 2), ('/mnt/data/17082025/00/02/image_17082025_00_02_15_10656.jpg', 2), ('/mnt/data/17082025/00/02/image_17082025_00_02_24_8984.jpg', 2), ('/mnt/data/17082025/00/02/image_17082025_00_02_35_10311.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/01/image_17082025_00_01_35_10793.jpg', '/mnt/data/17082025/00/01/image_17082025_00_01_45_10191.jpg', '/mnt/data/17082025/00/01/image_17082025_00_02_05_10329.jpg', '/mnt/data/17082025/00/02/image_17082025_00_02_15_10656.jpg', '/mnt/data/17082025/00/02/image_17082025_00_02_24_8984.jpg', '/mnt/data/17082025/00/02/image_17082025_00_02_35_10311.jpg']
batch 1
begin to post requests
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:13:13.855305
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.19702696800232 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/15/59/image_17082025_15_59_24_9966.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/15/59/image_17082025_15_59_24_9966.jpg', '/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', '/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', '/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', '/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:13:49.816478
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 27.427107095718384 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/01/image_17082025_00_01_35_10793.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_45_10191.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_02_05_10329.jpg', 2), ('/mnt/data/17082025/00/02/image_17082025_00_02_15_10656.jpg', 2), ('/mnt/data/17082025/00/02/image_17082025_00_02_24_8984.jpg', 2), ('/mnt/data/17082025/00/02/image_17082025_00_02_35_10311.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/01/image_17082025_00_01_35_10793.jpg', '/mnt/data/17082025/00/01/image_17082025_00_01_45_10191.jpg', '/mnt/data/17082025/00/01/image_17082025_00_02_05_10329.jpg', '/mnt/data/17082025/00/02/image_17082025_00_02_15_10656.jpg', '/mnt/data/17082025/00/02/image_17082025_00_02_24_8984.jpg', '/mnt/data/17082025/00/02/image_17082025_00_02_35_10311.jpg']
batch 1
begin to post requests
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:14:25.974044
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20097517967224 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/15/59/image_17082025_15_59_24_9966.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/15/59/image_17082025_15_59_24_9966.jpg', '/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', '/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', '/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', '/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 16:15:02.689717
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/15/59/image_17082025_15_59_24_9966.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/15/59/image_17082025_15_59_24_9966.jpg', '/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', '/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', '/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', '/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/15/59/image_17082025_15_59_24_9966.jpg', '/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', '/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', '/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', '/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/15/59/image_17082025_15_59_24_9966.jpg
/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg
/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg
/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg
/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg
/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 32.76757001876831 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:15:38.198224
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/01/image_17082025_00_01_35_10793.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_01_45_10191.jpg', 2), ('/mnt/data/17082025/00/01/image_17082025_00_02_05_10329.jpg', 2), ('/mnt/data/17082025/00/02/image_17082025_00_02_15_10656.jpg', 2), ('/mnt/data/17082025/00/02/image_17082025_00_02_24_8984.jpg', 2), ('/mnt/data/17082025/00/02/image_17082025_00_02_35_10311.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/01/image_17082025_00_01_35_10793.jpg', '/mnt/data/17082025/00/01/image_17082025_00_01_45_10191.jpg', '/mnt/data/17082025/00/01/image_17082025_00_02_05_10329.jpg', '/mnt/data/17082025/00/02/image_17082025_00_02_15_10656.jpg', '/mnt/data/17082025/00/02/image_17082025_00_02_24_8984.jpg', '/mnt/data/17082025/00/02/image_17082025_00_02_35_10311.jpg']
batch 1
begin to post requests
Result OK !
uploaded 6 photos
time to upload: 68.42630887031555 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:16:50.321191
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.285722255706787 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/02/image_17082025_00_02_55_10166.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_03_14_9018.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_03_35_10324.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_04_05_10391.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_15_10478.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_24_9089.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/02/image_17082025_00_02_55_10166.jpg', '/mnt/data/17082025/00/03/image_17082025_00_03_14_9018.jpg', '/mnt/data/17082025/00/03/image_17082025_00_03_35_10324.jpg', '/mnt/data/17082025/00/03/image_17082025_00_04_05_10391.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_15_10478.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_24_9089.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:17:26.534158
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.179598331451416 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/15/59/image_17082025_15_59_24_9966.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/15/59/image_17082025_15_59_24_9966.jpg', '/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', '/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', '/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', '/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 16:18:03.023208
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/15/59/image_17082025_15_59_24_9966.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/15/59/image_17082025_15_59_24_9966.jpg', '/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', '/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', '/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', '/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/15/59/image_17082025_15_59_24_9966.jpg', '/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', '/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', '/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', '/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/15/59/image_17082025_15_59_24_9966.jpg
/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg
/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg
/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg
/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg
/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.205783367156982 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:18:38.612035
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.211345911026 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/02/image_17082025_00_02_55_10166.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_03_14_9018.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_03_35_10324.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_04_05_10391.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_15_10478.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_24_9089.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/02/image_17082025_00_02_55_10166.jpg', '/mnt/data/17082025/00/03/image_17082025_00_03_14_9018.jpg', '/mnt/data/17082025/00/03/image_17082025_00_03_35_10324.jpg', '/mnt/data/17082025/00/03/image_17082025_00_04_05_10391.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_15_10478.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_24_9089.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:19:14.793664
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.181050062179565 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/15/59/image_17082025_15_59_24_9966.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/15/59/image_17082025_15_59_24_9966.jpg', '/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', '/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', '/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', '/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:19:50.733379
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.202706813812256 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/02/image_17082025_00_02_55_10166.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_03_14_9018.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_03_35_10324.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_04_05_10391.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_15_10478.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_24_9089.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/02/image_17082025_00_02_55_10166.jpg', '/mnt/data/17082025/00/03/image_17082025_00_03_14_9018.jpg', '/mnt/data/17082025/00/03/image_17082025_00_03_35_10324.jpg', '/mnt/data/17082025/00/03/image_17082025_00_04_05_10391.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_15_10478.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_24_9089.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:20:25.893709
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/16/11/image_17082025_16_11_54_9929.jpg', 2), ('/mnt/data/17082025/15/59/image_17082025_15_59_24_9966.jpg', 2), ('/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', 2), ('/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', 2), ('/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/11/image_17082025_16_11_54_9929.jpg', '/mnt/data/17082025/15/59/image_17082025_15_59_24_9966.jpg', '/mnt/data/17082025/13/55/image_17082025_13_56_04_9275.jpg', '/mnt/data/17082025/13/52/image_17082025_13_52_14_10241.jpg', '/mnt/data/17082025/13/51/image_17082025_13_52_04_9286.jpg', '/mnt/data/17082025/13/51/image_17082025_13_51_24_10168.jpg']
batch 1
begin to post requests
Result OK !
uploaded 6 photos
time to upload: 67.67929601669312 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:21:38.070394
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20520830154419 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/02/image_17082025_00_02_55_10166.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_03_14_9018.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_03_35_10324.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_04_05_10391.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_15_10478.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_24_9089.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/02/image_17082025_00_02_55_10166.jpg', '/mnt/data/17082025/00/03/image_17082025_00_03_14_9018.jpg', '/mnt/data/17082025/00/03/image_17082025_00_03_35_10324.jpg', '/mnt/data/17082025/00/03/image_17082025_00_04_05_10391.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_15_10478.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_24_9089.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:22:14.247292
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.19330096244812 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg', 2), ('/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg', '/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:22:50.120707
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.47723913192749 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/02/image_17082025_00_02_55_10166.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_03_14_9018.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_03_35_10324.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_04_05_10391.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_15_10478.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_24_9089.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/02/image_17082025_00_02_55_10166.jpg', '/mnt/data/17082025/00/03/image_17082025_00_03_14_9018.jpg', '/mnt/data/17082025/00/03/image_17082025_00_03_35_10324.jpg', '/mnt/data/17082025/00/03/image_17082025_00_04_05_10391.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_15_10478.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_24_9089.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:23:26.417041
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
uploaded 0 photos
time to upload: 142.24512887001038 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg', 2), ('/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg', '/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Read timed out. (read timeout=120)
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:25:50.571194
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.352461338043213 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/02/image_17082025_00_02_55_10166.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_03_14_9018.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_03_35_10324.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_04_05_10391.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_15_10478.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_24_9089.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/02/image_17082025_00_02_55_10166.jpg', '/mnt/data/17082025/00/03/image_17082025_00_03_14_9018.jpg', '/mnt/data/17082025/00/03/image_17082025_00_03_35_10324.jpg', '/mnt/data/17082025/00/03/image_17082025_00_04_05_10391.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_15_10478.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_24_9089.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:26:26.691164
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.424752473831177 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/16/22/image_17082025_16_22_35_10178.jpg', 2), ('/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg', 2), ('/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/22/image_17082025_16_22_35_10178.jpg', '/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg', '/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 16:27:02.543700
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/16/22/image_17082025_16_22_35_10178.jpg', 2), ('/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg', 2), ('/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/22/image_17082025_16_22_35_10178.jpg', '/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg', '/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/16/22/image_17082025_16_22_35_10178.jpg', '/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg', '/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/16/22/image_17082025_16_22_35_10178.jpg
/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg
/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg
/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg
/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg
/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.213946104049683 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:27:37.845993
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 16:28:02.448130
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/16/22/image_17082025_16_22_35_10178.jpg', 2), ('/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg', 2), ('/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/22/image_17082025_16_22_35_10178.jpg', '/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg', '/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/16/22/image_17082025_16_22_35_10178.jpg', '/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg', '/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/16/22/image_17082025_16_22_35_10178.jpg
/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg
/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg
/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg
/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg
/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.18621325492859 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 16:29:02.896737
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/16/28/image_17082025_16_28_34_9004.jpg', 2), ('/mnt/data/17082025/16/24/image_17082025_16_24_17_10223.jpg', 2), ('/mnt/data/17082025/16/22/image_17082025_16_22_35_10178.jpg', 2), ('/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg', 2), ('/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/28/image_17082025_16_28_34_9004.jpg', '/mnt/data/17082025/16/24/image_17082025_16_24_17_10223.jpg', '/mnt/data/17082025/16/22/image_17082025_16_22_35_10178.jpg', '/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg', '/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/16/28/image_17082025_16_28_34_9004.jpg', '/mnt/data/17082025/16/24/image_17082025_16_24_17_10223.jpg', '/mnt/data/17082025/16/22/image_17082025_16_22_35_10178.jpg', '/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg', '/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/16/28/image_17082025_16_28_34_9004.jpg
/mnt/data/17082025/16/24/image_17082025_16_24_17_10223.jpg
/mnt/data/17082025/16/22/image_17082025_16_22_35_10178.jpg
/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg
/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg
/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 34.3418447971344 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:29:38.243198
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.2201030254364 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/02/image_17082025_00_02_55_10166.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_03_14_9018.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_03_35_10324.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_04_05_10391.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_15_10478.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_24_9089.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/02/image_17082025_00_02_55_10166.jpg', '/mnt/data/17082025/00/03/image_17082025_00_03_14_9018.jpg', '/mnt/data/17082025/00/03/image_17082025_00_03_35_10324.jpg', '/mnt/data/17082025/00/03/image_17082025_00_04_05_10391.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_15_10478.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_24_9089.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:30:14.521099
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.19391632080078 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/16/28/image_17082025_16_28_44_10266.jpg', 2), ('/mnt/data/17082025/16/28/image_17082025_16_28_34_9004.jpg', 2), ('/mnt/data/17082025/16/24/image_17082025_16_24_17_10223.jpg', 2), ('/mnt/data/17082025/16/22/image_17082025_16_22_35_10178.jpg', 2), ('/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg', 2), ('/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/28/image_17082025_16_28_44_10266.jpg', '/mnt/data/17082025/16/28/image_17082025_16_28_34_9004.jpg', '/mnt/data/17082025/16/24/image_17082025_16_24_17_10223.jpg', '/mnt/data/17082025/16/22/image_17082025_16_22_35_10178.jpg', '/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg', '/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:30:50.374656
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/02/image_17082025_00_02_55_10166.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_03_14_9018.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_03_35_10324.jpg', 2), ('/mnt/data/17082025/00/03/image_17082025_00_04_05_10391.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_15_10478.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_24_9089.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/02/image_17082025_00_02_55_10166.jpg', '/mnt/data/17082025/00/03/image_17082025_00_03_14_9018.jpg', '/mnt/data/17082025/00/03/image_17082025_00_03_35_10324.jpg', '/mnt/data/17082025/00/03/image_17082025_00_04_05_10391.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_15_10478.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_24_9089.jpg']
batch 1
begin to post requests
Result OK !
uploaded 6 photos
time to upload: 70.33872747421265 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 16:32:03.106710
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/16/28/image_17082025_16_28_44_10266.jpg', 2), ('/mnt/data/17082025/16/28/image_17082025_16_28_34_9004.jpg', 2), ('/mnt/data/17082025/16/24/image_17082025_16_24_17_10223.jpg', 2), ('/mnt/data/17082025/16/22/image_17082025_16_22_35_10178.jpg', 2), ('/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg', 2), ('/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/28/image_17082025_16_28_44_10266.jpg', '/mnt/data/17082025/16/28/image_17082025_16_28_34_9004.jpg', '/mnt/data/17082025/16/24/image_17082025_16_24_17_10223.jpg', '/mnt/data/17082025/16/22/image_17082025_16_22_35_10178.jpg', '/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg', '/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/16/28/image_17082025_16_28_44_10266.jpg', '/mnt/data/17082025/16/28/image_17082025_16_28_34_9004.jpg', '/mnt/data/17082025/16/24/image_17082025_16_24_17_10223.jpg', '/mnt/data/17082025/16/22/image_17082025_16_22_35_10178.jpg', '/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg', '/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/16/28/image_17082025_16_28_44_10266.jpg
/mnt/data/17082025/16/28/image_17082025_16_28_34_9004.jpg
/mnt/data/17082025/16/24/image_17082025_16_24_17_10223.jpg
/mnt/data/17082025/16/22/image_17082025_16_22_35_10178.jpg
/mnt/data/17082025/16/21/image_17082025_16_21_45_10186.jpg
/mnt/data/17082025/16/20/image_17082025_16_20_15_10127.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
 val : 1 : upload photos already in processing! 
<Response [200]>
b'{"photo_ids":["1377672019","1377672022","1377672033","1377672036","1377672026","1377672029"],"photo_ids_order":["1377672019","1377672022","1377672026","1377672029","1377672033","1377672036"],"photo_detail":[{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/d806477f79e1ab034403777380aec6ec.jpg","text":"TemporaryFile(/tmp/multipartBody6176071231442815053asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755441202843,"filename":"image_17082025_16_28_44_10266.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/4c98d118141c101182e4877a8e407e4d.jpg","text":"TemporaryFile(/tmp/multipartBody6113066434294830111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755441202843,"filename":"image_17082025_16_28_34_9004.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/79fe60b29e9320c9fb52afe12dafc1df.jpg","text":"TemporaryFile(/tmp/multipartBody6883173705151583821asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755441202843,"filename":"image_17082025_16_21_45_10186.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/37342b9f5832e7845723f2e827c1bf71.jpg","text":"TemporaryFile(/tmp/multipartBody8026478135985678808asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755441202843,"filename":"image_17082025_16_20_15_10127.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/515ea54d2f17042cd4d47526f31ed35c.jpg","text":"TemporaryFile(/tmp/multipartBody8479540417791667775asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755441202843,"filename":"image_17082025_16_24_17_10223.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/b0d6b788f54820cbfd740e777355bc80.jpg","text":"TemporaryFile(/tmp/multipartBody7454472898618666340asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755441202843,"filename":"image_17082025_16_22_35_10178.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377672026","file1":"1377672022","file0":"1377672019","file4":"1377672033","file5":"1377672036","file3":"1377672029"},"map_files_photo_id_array":[{"photo_id":"1377672036","filename":"file5"},{"photo_id":"1377672026","filename":"file2"},{"photo_id":"1377672033","filename":"file4"},{"photo_id":"1377672022","filename":"file1"},{"photo_id":"1377672019","filename":"file0"},{"photo_id":"1377672029","filename":"file3"}],"portfolio_id":26044711,"hashtag_by_photo_ids":[{"1377672019":["hashtag1","hashtag2"]},{"1377672022":["hashtag1","hashtag2"]},{"1377672033":["hashtag1","hashtag2"]},{"1377672036":["hashtag1","hashtag2"]},{"1377672026":["hashtag1","hashtag2"]},{"1377672029":["hashtag1","hashtag2"]}],"comms":"Portfolio 26044711 used, photo_id : ArrayBuffer(1377672019, 1377672022, 1377672033, 1377672036, 1377672026, 1377672029)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 61.38298225402832 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:33:15.093671
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.19139528274536 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:33:50.936500
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.3130841255188 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', '/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', '/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:34:26.064225
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.19820237159729 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 16:35:02.740347
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg
/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg
/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg
/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg
/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg
/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 31.03338360786438 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:35:38.231649
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.206443548202515 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', '/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', '/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:36:14.377155
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.210705518722534 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:36:50.341041
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.21681809425354 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', '/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', '/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:37:26.476624
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.17946147918701 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 16:38:03.146080
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg
/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg
/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg
/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg
/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg
/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.195653676986694 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:38:38.666679
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.233620643615723 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', '/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', '/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:39:14.841027
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20642614364624 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:39:50.786211
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.22382926940918 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', '/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', '/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:40:25.924934
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.180604934692383 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 16:41:02.790237
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg
/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg
/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg
/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg
/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg
/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 31.93847155570984 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:41:38.266825
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.207920789718628 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', '/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', '/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:42:14.345077
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 37.69207262992859 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 16:43:03.086202
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg
/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg
/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg
/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg
/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg
/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 31.864656925201416 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:43:38.494742
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20690393447876 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', '/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', '/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:44:14.630357
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.195507526397705 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:44:50.580388
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.222614288330078 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', '/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', '/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:45:26.731055
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.19830083847046 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 16:46:02.297330
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg
/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg
/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg
/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg
/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg
/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.206552267074585 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:46:37.833301
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.40545082092285 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', '/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', '/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:47:14.353824
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.190619945526123 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:47:50.324303
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.21461248397827 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', '/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', '/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:48:26.472210
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.178563356399536 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 16:49:03.293340
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg
/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg
/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg
/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg
/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg
/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.18883228302002 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:49:38.643094
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.23083257675171 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', '/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', '/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:50:14.786580
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.18345856666565 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/16/50/image_17082025_16_50_14_8958.jpg', 2), ('/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg', 2), ('/mnt/data/17082025/16/30/image_17082025_16_30_14_10161.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/50/image_17082025_16_50_14_8958.jpg', '/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg', '/mnt/data/17082025/16/30/image_17082025_16_30_14_10161.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:50:50.737579
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.219390869140625 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', '/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', '/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:51:25.875369
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/16/50/image_17082025_16_50_14_8958.jpg', 2), ('/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg', 2), ('/mnt/data/17082025/16/30/image_17082025_16_30_14_10161.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', 2), ('/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', 2), ('/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/50/image_17082025_16_50_14_8958.jpg', '/mnt/data/17082025/16/42/image_17082025_16_43_04_9971.jpg', '/mnt/data/17082025/16/30/image_17082025_16_30_14_10161.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_34_10216.jpg', '/mnt/data/17082025/13/50/image_17082025_13_50_24_10180.jpg', '/mnt/data/17082025/13/46/image_17082025_13_46_44_10192.jpg']
batch 1
begin to post requests
Result OK !
uploaded 6 photos
time to upload: 63.33409547805786 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:52:37.994923
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 24.672640323638916 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', '/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', '/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg']
batch 1
begin to post requests
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:53:14.217871
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.224044799804688 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg', 2), ('/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', '/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:53:50.132313
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.415295839309692 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', '/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', '/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:54:26.314268
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.18805480003357 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg', 2), ('/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', '/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 16:55:02.942305
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg', 2), ('/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', '/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', '/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg
/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg
/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg
/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg
/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg
/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 33.826476097106934 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:55:38.426569
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20340347290039 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', '/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', '/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:56:14.657751
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.19617986679077 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/16/55/image_17082025_16_55_25_10177.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_55_14_10217.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_35_10185.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/55/image_17082025_16_55_25_10177.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_14_10217.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_35_10185.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', '/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:56:50.559606
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.221243143081665 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', '/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', '/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:57:26.830417
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.180448293685913 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/16/55/image_17082025_16_55_54_10217.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_55_25_10177.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_55_14_10217.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_35_10185.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/55/image_17082025_16_55_54_10217.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_25_10177.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_14_10217.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_35_10185.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 16:59:03.194412
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/16/55/image_17082025_16_55_54_10217.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_55_25_10177.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_55_14_10217.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_35_10185.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/55/image_17082025_16_55_54_10217.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_25_10177.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_14_10217.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_35_10185.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/16/55/image_17082025_16_55_54_10217.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_25_10177.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_14_10217.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_35_10185.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/16/55/image_17082025_16_55_54_10217.jpg
/mnt/data/17082025/16/55/image_17082025_16_55_25_10177.jpg
/mnt/data/17082025/16/55/image_17082025_16_55_14_10217.jpg
/mnt/data/17082025/16/53/image_17082025_16_53_35_10185.jpg
/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg
/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.208967208862305 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 16:59:38.413257
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.712597846984863 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', '/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', '/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:00:14.627855
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20013427734375 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/16/55/image_17082025_16_56_04_10315.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_55_54_10217.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_55_25_10177.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_55_14_10217.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_35_10185.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/55/image_17082025_16_56_04_10315.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_54_10217.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_25_10177.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_14_10217.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_35_10185.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:00:50.529308
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.201100826263428 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', '/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', '/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:01:26.681016
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.203773021697998 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/01/image_17082025_17_01_24_9902.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_56_04_10315.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_55_54_10217.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_55_25_10177.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_55_14_10217.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_35_10185.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/01/image_17082025_17_01_24_9902.jpg', '/mnt/data/17082025/16/55/image_17082025_16_56_04_10315.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_54_10217.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_25_10177.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_14_10217.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_35_10185.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 17:02:03.259737
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/17/01/image_17082025_17_01_24_9902.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_56_04_10315.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_55_54_10217.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_55_25_10177.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_55_14_10217.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_35_10185.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/01/image_17082025_17_01_24_9902.jpg', '/mnt/data/17082025/16/55/image_17082025_16_56_04_10315.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_54_10217.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_25_10177.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_14_10217.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_35_10185.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/17/01/image_17082025_17_01_24_9902.jpg', '/mnt/data/17082025/16/55/image_17082025_16_56_04_10315.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_54_10217.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_25_10177.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_14_10217.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_35_10185.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/17/01/image_17082025_17_01_24_9902.jpg
/mnt/data/17082025/16/55/image_17082025_16_56_04_10315.jpg
/mnt/data/17082025/16/55/image_17082025_16_55_54_10217.jpg
/mnt/data/17082025/16/55/image_17082025_16_55_25_10177.jpg
/mnt/data/17082025/16/55/image_17082025_16_55_14_10217.jpg
/mnt/data/17082025/16/53/image_17082025_16_53_35_10185.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 31.525654077529907 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:02:38.826847
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 24.01698899269104 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', '/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', '/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg']
batch 1
begin to post requests
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:03:14.028579
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 31.217214345932007 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/01/image_17082025_17_01_24_9902.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_56_04_10315.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_55_54_10217.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_55_25_10177.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_55_14_10217.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_35_10185.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/01/image_17082025_17_01_24_9902.jpg', '/mnt/data/17082025/16/55/image_17082025_16_56_04_10315.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_54_10217.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_25_10177.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_14_10217.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_35_10185.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:03:49.985388
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', 2), ('/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', 2), ('/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/04/image_17082025_00_04_35_10302.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_45_10329.jpg', '/mnt/data/17082025/00/04/image_17082025_00_04_55_10259.jpg', '/mnt/data/17082025/00/05/image_17082025_00_05_35_10220.jpg', '/mnt/data/17082025/00/05/image_17082025_00_06_05_9224.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_15_10226.jpg']
batch 1
begin to post requests
Result OK !
uploaded 6 photos
time to upload: 70.07692527770996 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 17:05:02.898888
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/17/01/image_17082025_17_01_24_9902.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_56_04_10315.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_55_54_10217.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_55_25_10177.jpg', 2), ('/mnt/data/17082025/16/55/image_17082025_16_55_14_10217.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_35_10185.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/01/image_17082025_17_01_24_9902.jpg', '/mnt/data/17082025/16/55/image_17082025_16_56_04_10315.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_54_10217.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_25_10177.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_14_10217.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_35_10185.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/17/01/image_17082025_17_01_24_9902.jpg', '/mnt/data/17082025/16/55/image_17082025_16_56_04_10315.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_54_10217.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_25_10177.jpg', '/mnt/data/17082025/16/55/image_17082025_16_55_14_10217.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_35_10185.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/17/01/image_17082025_17_01_24_9902.jpg
/mnt/data/17082025/16/55/image_17082025_16_56_04_10315.jpg
/mnt/data/17082025/16/55/image_17082025_16_55_54_10217.jpg
/mnt/data/17082025/16/55/image_17082025_16_55_25_10177.jpg
/mnt/data/17082025/16/55/image_17082025_16_55_14_10217.jpg
/mnt/data/17082025/16/53/image_17082025_16_53_35_10185.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! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1377676061","1377676055","1377676019","1377675988","1377676083","1377676029"],"photo_ids_order":["1377675988","1377676019","1377676029","1377676055","1377676061","1377676083"],"photo_detail":[{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/73d3defd8ec6d39dc99cf3cd9b8204a8.jpg","text":"TemporaryFile(/tmp/multipartBody5198402480081616134asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755443188783,"filename":"image_17082025_16_55_14_10217.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/0b17a1477dcbfe2a9abb2902d88e0aea.jpg","text":"TemporaryFile(/tmp/multipartBody1419371115841786509asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755443188783,"filename":"image_17082025_16_55_25_10177.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/acad175b7a097205debb467bbcb51a91.jpg","text":"TemporaryFile(/tmp/multipartBody7460912866622029296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755443188783,"filename":"image_17082025_16_56_04_10315.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/86a7ee60a76869313785fec170e928ab.jpg","text":"TemporaryFile(/tmp/multipartBody6416188545185001253asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755443188783,"filename":"image_17082025_17_01_24_9902.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/444c59ac9fe7bcabbabca7b5fe90e1a0.jpg","text":"TemporaryFile(/tmp/multipartBody8961382595381791098asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755443188783,"filename":"image_17082025_16_53_35_10185.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/140642fae807ba6c15ff7c55ab747758.jpg","text":"TemporaryFile(/tmp/multipartBody3525209585111503694asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755443188783,"filename":"image_17082025_16_55_54_10217.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377676029","file1":"1377676019","file0":"1377675988","file4":"1377676061","file5":"1377676083","file3":"1377676055"},"map_files_photo_id_array":[{"photo_id":"1377676083","filename":"file5"},{"photo_id":"1377676029","filename":"file2"},{"photo_id":"1377676061","filename":"file4"},{"photo_id":"1377676019","filename":"file1"},{"photo_id":"1377675988","filename":"file0"},{"photo_id":"1377676055","filename":"file3"}],"portfolio_id":26044711,"hashtag_by_photo_ids":[{"1377676061":["hashtag1","hashtag2"]},{"1377676055":["hashtag1","hashtag2"]},{"1377676019":["hashtag1","hashtag2"]},{"1377675988":["hashtag1","hashtag2"]},{"1377676083":["hashtag1","hashtag2"]},{"1377676029":["hashtag1","hashtag2"]}],"comms":"Portfolio 26044711 used, photo_id : ArrayBuffer(1377676061, 1377676055, 1377676019, 1377675988, 1377676083, 1377676029)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 65.11587691307068 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:06:14.356523
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.218916416168213 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg', 2), ('/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', '/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:06:50.364420
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.30800199508667 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/06/image_17082025_00_06_25_10487.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_34_8963.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_55_10352.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_07_05_10275.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_14_9042.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_25_10279.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/06/image_17082025_00_06_25_10487.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_34_8963.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_55_10352.jpg', '/mnt/data/17082025/00/06/image_17082025_00_07_05_10275.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_14_9042.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_25_10279.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:07:26.510931
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20571732521057 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg', 2), ('/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', '/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 17:08:02.969868
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg', 2), ('/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', '/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', '/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg
/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg
/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg
/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg
/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg
/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.203104496002197 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:08:38.643486
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.290483951568604 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/06/image_17082025_00_06_25_10487.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_34_8963.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_55_10352.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_07_05_10275.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_14_9042.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_25_10279.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/06/image_17082025_00_06_25_10487.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_34_8963.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_55_10352.jpg', '/mnt/data/17082025/00/06/image_17082025_00_07_05_10275.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_14_9042.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_25_10279.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:09:14.834759
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.187076807022095 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg', 2), ('/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', '/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:09:50.800381
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.218199729919434 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/06/image_17082025_00_06_25_10487.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_34_8963.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_55_10352.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_07_05_10275.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_14_9042.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_25_10279.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/06/image_17082025_00_06_25_10487.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_34_8963.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_55_10352.jpg', '/mnt/data/17082025/00/06/image_17082025_00_07_05_10275.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_14_9042.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_25_10279.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:10:25.945233
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.17908477783203 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/10/image_17082025_17_10_35_9988.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/10/image_17082025_17_10_35_9988.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', '/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 17:11:02.678224
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/17/10/image_17082025_17_10_35_9988.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/10/image_17082025_17_10_35_9988.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', '/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/17/10/image_17082025_17_10_35_9988.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', '/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/17/10/image_17082025_17_10_35_9988.jpg
/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg
/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg
/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg
/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg
/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.199163913726807 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:11:38.058803
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.21922254562378 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/06/image_17082025_00_06_25_10487.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_34_8963.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_55_10352.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_07_05_10275.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_14_9042.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_25_10279.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/06/image_17082025_00_06_25_10487.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_34_8963.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_55_10352.jpg', '/mnt/data/17082025/00/06/image_17082025_00_07_05_10275.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_14_9042.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_25_10279.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:12:14.252024
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.17692470550537 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/10/image_17082025_17_10_35_9988.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/10/image_17082025_17_10_35_9988.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', '/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:12:50.206110
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.219756603240967 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/06/image_17082025_00_06_25_10487.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_34_8963.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_55_10352.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_07_05_10275.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_14_9042.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_25_10279.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/06/image_17082025_00_06_25_10487.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_34_8963.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_55_10352.jpg', '/mnt/data/17082025/00/06/image_17082025_00_07_05_10275.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_14_9042.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_25_10279.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:13:26.394130
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.30779242515564 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/10/image_17082025_17_10_35_9988.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/10/image_17082025_17_10_35_9988.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', '/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 17:14:02.899040
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/17/10/image_17082025_17_10_35_9988.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', 2), ('/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', 2), ('/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/10/image_17082025_17_10_35_9988.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', '/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/17/10/image_17082025_17_10_35_9988.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg', '/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg', '/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg', '/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/17/10/image_17082025_17_10_35_9988.jpg
/mnt/data/17082025/16/53/image_17082025_16_53_24_10254.jpg
/mnt/data/17082025/16/53/image_17082025_16_53_14_10253.jpg
/mnt/data/17082025/16/52/image_17082025_16_53_04_8986.jpg
/mnt/data/17082025/16/52/image_17082025_16_52_45_10164.jpg
/mnt/data/17082025/16/52/image_17082025_16_52_14_10273.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! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1377676301","1377676310","1377676304","1377676306","1377676305","1377676308"],"photo_ids_order":["1377676301","1377676304","1377676305","1377676306","1377676308","1377676310"],"photo_detail":[{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/2d4f170c2b5b86b21b010de5971e8af1.jpg","text":"TemporaryFile(/tmp/multipartBody8847171401171019075asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755443731363,"filename":"image_17082025_17_10_35_9988.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/6e3bfc0bdcf6ad7d2d15f3c72d69d65a.jpg","text":"TemporaryFile(/tmp/multipartBody2182409534275100220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755443731363,"filename":"image_17082025_16_52_14_10273.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/d543635b8ee467553a38b69f8b736f8d.jpg","text":"TemporaryFile(/tmp/multipartBody276355526055313468asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755443731363,"filename":"image_17082025_16_53_24_10254.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/856f6b2b9374aea6675fba1497c31194.jpg","text":"TemporaryFile(/tmp/multipartBody7808093923432074617asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755443731363,"filename":"image_17082025_16_53_04_8986.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/a543e36ce7348e52da4f233ed6494df3.jpg","text":"TemporaryFile(/tmp/multipartBody3559205661863640118asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755443731363,"filename":"image_17082025_16_53_14_10253.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/b955f4989198f545698358b2c00e97ac.jpg","text":"TemporaryFile(/tmp/multipartBody5172316733772981890asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755443731363,"filename":"image_17082025_16_52_45_10164.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377676305","file1":"1377676304","file0":"1377676301","file4":"1377676308","file5":"1377676310","file3":"1377676306"},"map_files_photo_id_array":[{"photo_id":"1377676310","filename":"file5"},{"photo_id":"1377676305","filename":"file2"},{"photo_id":"1377676308","filename":"file4"},{"photo_id":"1377676304","filename":"file1"},{"photo_id":"1377676301","filename":"file0"},{"photo_id":"1377676306","filename":"file3"}],"portfolio_id":26044711,"hashtag_by_photo_ids":[{"1377676301":["hashtag1","hashtag2"]},{"1377676310":["hashtag1","hashtag2"]},{"1377676304":["hashtag1","hashtag2"]},{"1377676306":["hashtag1","hashtag2"]},{"1377676305":["hashtag1","hashtag2"]},{"1377676308":["hashtag1","hashtag2"]}],"comms":"Portfolio 26044711 used, photo_id : ArrayBuffer(1377676301, 1377676310, 1377676304, 1377676306, 1377676305, 1377676308)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 68.31228041648865 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:15:14.795203
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.190678596496582 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', 2), ('/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', '/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:15:50.734650
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.263216018676758 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/06/image_17082025_00_06_25_10487.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_34_8963.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_55_10352.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_07_05_10275.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_14_9042.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_25_10279.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/06/image_17082025_00_06_25_10487.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_34_8963.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_55_10352.jpg', '/mnt/data/17082025/00/06/image_17082025_00_07_05_10275.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_14_9042.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_25_10279.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:16:25.899322
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.181638479232788 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', 2), ('/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', '/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 17:17:02.434564
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', 2), ('/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', '/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', '/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg
/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg
/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg
/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg
/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg
/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.211214303970337 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:17:38.015186
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.214815855026245 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/06/image_17082025_00_06_25_10487.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_34_8963.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_55_10352.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_07_05_10275.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_14_9042.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_25_10279.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/06/image_17082025_00_06_25_10487.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_34_8963.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_55_10352.jpg', '/mnt/data/17082025/00/06/image_17082025_00_07_05_10275.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_14_9042.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_25_10279.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:18:14.176018
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
uploaded 0 photos
time to upload: 147.89012718200684 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', 2), ('/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', '/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Read timed out. (read timeout=120)
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:20:50.395077
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/06/image_17082025_00_06_25_10487.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_34_8963.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_06_55_10352.jpg', 2), ('/mnt/data/17082025/00/06/image_17082025_00_07_05_10275.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_14_9042.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_25_10279.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/06/image_17082025_00_06_25_10487.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_34_8963.jpg', '/mnt/data/17082025/00/06/image_17082025_00_06_55_10352.jpg', '/mnt/data/17082025/00/06/image_17082025_00_07_05_10275.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_14_9042.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_25_10279.jpg']
batch 1
begin to post requests
Result OK !
uploaded 6 photos
time to upload: 68.06357002258301 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 17:22:03.150003
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/17/19/image_17082025_17_19_45_10033.jpg', 2), ('/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', 2), ('/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/19/image_17082025_17_19_45_10033.jpg', '/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/17/19/image_17082025_17_19_45_10033.jpg', '/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/17/19/image_17082025_17_19_45_10033.jpg
/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg
/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg
/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg
/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg
/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.19588828086853 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:22:38.673041
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 24.52629804611206 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/07/image_17082025_00_07_35_10290.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_55_10254.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_08_04_9034.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_08_37_10193.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_08_45_9838.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_09_05_10215.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/07/image_17082025_00_07_35_10290.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_55_10254.jpg', '/mnt/data/17082025/00/07/image_17082025_00_08_04_9034.jpg', '/mnt/data/17082025/00/08/image_17082025_00_08_37_10193.jpg', '/mnt/data/17082025/00/08/image_17082025_00_08_45_9838.jpg', '/mnt/data/17082025/00/08/image_17082025_00_09_05_10215.jpg']
batch 1
begin to post requests
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:23:13.872071
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
uploaded 0 photos
time to upload: 148.6781702041626 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/19/image_17082025_17_19_45_10033.jpg', 2), ('/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', 2), ('/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/19/image_17082025_17_19_45_10033.jpg', '/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Read timed out. (read timeout=120)
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:25:50.043559
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.201786994934082 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/07/image_17082025_00_07_35_10290.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_55_10254.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_08_04_9034.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_08_37_10193.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_08_45_9838.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_09_05_10215.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/07/image_17082025_00_07_35_10290.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_55_10254.jpg', '/mnt/data/17082025/00/07/image_17082025_00_08_04_9034.jpg', '/mnt/data/17082025/00/08/image_17082025_00_08_37_10193.jpg', '/mnt/data/17082025/00/08/image_17082025_00_08_45_9838.jpg', '/mnt/data/17082025/00/08/image_17082025_00_09_05_10215.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:26:26.247500
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.205703020095825 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/19/image_17082025_17_19_45_10033.jpg', 2), ('/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', 2), ('/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/19/image_17082025_17_19_45_10033.jpg', '/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 17:27:02.901554
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/17/19/image_17082025_17_19_45_10033.jpg', 2), ('/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', 2), ('/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/19/image_17082025_17_19_45_10033.jpg', '/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/17/19/image_17082025_17_19_45_10033.jpg', '/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/17/19/image_17082025_17_19_45_10033.jpg
/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg
/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg
/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg
/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg
/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 32.91786742210388 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:27:38.317391
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 17:29:03.154347
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/17/28/image_17082025_17_28_54_9983.jpg', 2), ('/mnt/data/17082025/17/19/image_17082025_17_19_45_10033.jpg', 2), ('/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', 2), ('/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/28/image_17082025_17_28_54_9983.jpg', '/mnt/data/17082025/17/19/image_17082025_17_19_45_10033.jpg', '/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/17/28/image_17082025_17_28_54_9983.jpg', '/mnt/data/17082025/17/19/image_17082025_17_19_45_10033.jpg', '/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/17/28/image_17082025_17_28_54_9983.jpg
/mnt/data/17082025/17/19/image_17082025_17_19_45_10033.jpg
/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg
/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg
/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg
/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.204626083374023 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:29:38.346570
in upload_from_sqlite, uploading in 26044711
uploaded 0 photos
time to upload: 8.804868221282959 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/07/image_17082025_00_07_35_10290.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_55_10254.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_08_04_9034.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_08_37_10193.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_08_45_9838.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_09_05_10215.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/07/image_17082025_00_07_35_10290.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_55_10254.jpg', '/mnt/data/17082025/00/07/image_17082025_00_08_04_9034.jpg', '/mnt/data/17082025/00/08/image_17082025_00_08_37_10193.jpg', '/mnt/data/17082025/00/08/image_17082025_00_08_45_9838.jpg', '/mnt/data/17082025/00/08/image_17082025_00_09_05_10215.jpg']
batch 1
begin to post requests
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:29:50.360364
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/07/image_17082025_00_07_35_10290.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_55_10254.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_08_04_9034.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_08_37_10193.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_08_45_9838.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_09_05_10215.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/07/image_17082025_00_07_35_10290.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_55_10254.jpg', '/mnt/data/17082025/00/07/image_17082025_00_08_04_9034.jpg', '/mnt/data/17082025/00/08/image_17082025_00_08_37_10193.jpg', '/mnt/data/17082025/00/08/image_17082025_00_08_45_9838.jpg', '/mnt/data/17082025/00/08/image_17082025_00_09_05_10215.jpg']
batch 1
begin to post requests
uploaded 0 photos
time to upload: 12.26485562324524 secondes ---
408
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:30:14.488166
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 31.041797876358032 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/28/image_17082025_17_28_54_9983.jpg', 2), ('/mnt/data/17082025/17/19/image_17082025_17_19_45_10033.jpg', 2), ('/mnt/data/17082025/17/14/image_17082025_17_14_46_10796.jpg', 2), ('/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', 2), ('/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/28/image_17082025_17_28_54_9983.jpg', '/mnt/data/17082025/17/19/image_17082025_17_19_45_10033.jpg', '/mnt/data/17082025/17/14/image_17082025_17_14_46_10796.jpg', '/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:30:50.478685
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.207686185836792 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/07/image_17082025_00_07_35_10290.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_55_10254.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_08_04_9034.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_08_37_10193.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_08_45_9838.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_09_05_10215.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/07/image_17082025_00_07_35_10290.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_55_10254.jpg', '/mnt/data/17082025/00/07/image_17082025_00_08_04_9034.jpg', '/mnt/data/17082025/00/08/image_17082025_00_08_37_10193.jpg', '/mnt/data/17082025/00/08/image_17082025_00_08_45_9838.jpg', '/mnt/data/17082025/00/08/image_17082025_00_09_05_10215.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:31:26.662919
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/30/image_17082025_17_30_14_10146.jpg', 2), ('/mnt/data/17082025/17/28/image_17082025_17_28_54_9983.jpg', 2), ('/mnt/data/17082025/17/19/image_17082025_17_19_45_10033.jpg', 2), ('/mnt/data/17082025/17/14/image_17082025_17_14_46_10796.jpg', 2), ('/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', 2), ('/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/30/image_17082025_17_30_14_10146.jpg', '/mnt/data/17082025/17/28/image_17082025_17_28_54_9983.jpg', '/mnt/data/17082025/17/19/image_17082025_17_19_45_10033.jpg', '/mnt/data/17082025/17/14/image_17082025_17_14_46_10796.jpg', '/mnt/data/17082025/17/00/image_17082025_17_00_14_10038.jpg', '/mnt/data/17082025/16/50/image_17082025_16_50_45_10175.jpg']
batch 1
begin to post requests
Result OK !
uploaded 6 photos
time to upload: 50.96058797836304 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:32:26.093686
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.19881510734558 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/31/image_17082025_17_31_34_10243.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/31/image_17082025_17_31_34_10243.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', '/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', '/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 17:33:02.753958
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/17/31/image_17082025_17_31_34_10243.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/31/image_17082025_17_31_34_10243.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', '/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', '/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/17/31/image_17082025_17_31_34_10243.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', '/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', '/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/17/31/image_17082025_17_31_34_10243.jpg
/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg
/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg
/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg
/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg
/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.196868896484375 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:33:38.264324
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.22568368911743 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/07/image_17082025_00_07_35_10290.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_55_10254.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_08_04_9034.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_08_37_10193.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_08_45_9838.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_09_05_10215.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/07/image_17082025_00_07_35_10290.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_55_10254.jpg', '/mnt/data/17082025/00/07/image_17082025_00_08_04_9034.jpg', '/mnt/data/17082025/00/08/image_17082025_00_08_37_10193.jpg', '/mnt/data/17082025/00/08/image_17082025_00_08_45_9838.jpg', '/mnt/data/17082025/00/08/image_17082025_00_09_05_10215.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:34:14.539315
in upload_from_sqlite, uploading in 26044711
uploaded 0 photos
time to upload: 2.824305295944214 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/31/image_17082025_17_31_34_10243.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/31/image_17082025_17_31_34_10243.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', '/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', '/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg']
batch 1
begin to post requests
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:34:26.405595
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.209176301956177 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/31/image_17082025_17_31_34_10243.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/31/image_17082025_17_31_34_10243.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', '/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', '/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 17:35:03.166541
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/17/31/image_17082025_17_31_34_10243.jpg', 2), ('/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', 2), ('/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', 2), ('/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/31/image_17082025_17_31_34_10243.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', '/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', '/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/17/31/image_17082025_17_31_34_10243.jpg', '/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg', '/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg', '/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg', '/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg', '/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/17/31/image_17082025_17_31_34_10243.jpg
/mnt/data/17082025/13/41/image_17082025_13_41_24_10204.jpg
/mnt/data/17082025/13/32/image_17082025_13_32_15_10266.jpg
/mnt/data/17082025/13/25/image_17082025_13_26_04_9042.jpg
/mnt/data/17082025/13/25/image_17082025_13_25_55_10214.jpg
/mnt/data/17082025/13/22/image_17082025_13_23_04_9668.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! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1377677822","1377677872","1377677827","1377677908","1377677838","1377677832"],"photo_ids_order":["1377677822","1377677827","1377677832","1377677838","1377677872","1377677908"],"photo_detail":[{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/47d183745a6ccba1c671039a28d75836.jpg","text":"TemporaryFile(/tmp/multipartBody78044591291513358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755444993545,"filename":"image_17082025_17_31_34_10243.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/e0a26cdf57d15b690f2e2751787ef9fa.jpg","text":"TemporaryFile(/tmp/multipartBody7758554884287670379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755444993545,"filename":"image_17082025_13_25_55_10214.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/efa6dba94141d5c51db99f60505a8fa1.jpg","text":"TemporaryFile(/tmp/multipartBody7635797127163839375asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755444993545,"filename":"image_17082025_13_41_24_10204.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/8e0cc3c0529ca51da5f2dad1cf39e020.jpg","text":"TemporaryFile(/tmp/multipartBody7658716443989327331asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755444993545,"filename":"image_17082025_13_23_04_9668.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/860e42bf0f485650d4f0869ce146bc17.jpg","text":"TemporaryFile(/tmp/multipartBody920479130000679932asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755444993545,"filename":"image_17082025_13_26_04_9042.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/1d5ec5e0cceaf98910dd411e3b6c3951.jpg","text":"TemporaryFile(/tmp/multipartBody7260569117059593205asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755444993545,"filename":"image_17082025_13_32_15_10266.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377677832","file1":"1377677827","file0":"1377677822","file4":"1377677872","file5":"1377677908","file3":"1377677838"},"map_files_photo_id_array":[{"photo_id":"1377677908","filename":"file5"},{"photo_id":"1377677832","filename":"file2"},{"photo_id":"1377677872","filename":"file4"},{"photo_id":"1377677827","filename":"file1"},{"photo_id":"1377677822","filename":"file0"},{"photo_id":"1377677838","filename":"file3"}],"portfolio_id":26044711,"hashtag_by_photo_ids":[{"1377677822":["hashtag1","hashtag2"]},{"1377677872":["hashtag1","hashtag2"]},{"1377677827":["hashtag1","hashtag2"]},{"1377677908":["hashtag1","hashtag2"]},{"1377677838":["hashtag1","hashtag2"]},{"1377677832":["hashtag1","hashtag2"]}],"comms":"Portfolio 26044711 used, photo_id : ArrayBuffer(1377677822, 1377677872, 1377677827, 1377677908, 1377677838, 1377677832)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 70.43301916122437 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:36:14.740596
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.18402338027954 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/36/image_17082025_17_36_44_10205.jpg', 2), ('/mnt/data/17082025/17/32/image_17082025_17_32_24_10215.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_22_25_10204.jpg', 2), ('/mnt/data/17082025/13/18/image_17082025_13_18_34_10137.jpg', 2), ('/mnt/data/17082025/12/40/image_17082025_12_40_26_10249.jpg', 2), ('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/36/image_17082025_17_36_44_10205.jpg', '/mnt/data/17082025/17/32/image_17082025_17_32_24_10215.jpg', '/mnt/data/17082025/13/22/image_17082025_13_22_25_10204.jpg', '/mnt/data/17082025/13/18/image_17082025_13_18_34_10137.jpg', '/mnt/data/17082025/12/40/image_17082025_12_40_26_10249.jpg', '/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:36:50.709634
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.356529712677002 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/07/image_17082025_00_07_35_10290.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_55_10254.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_08_04_9034.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_08_37_10193.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_08_45_9838.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_09_05_10215.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/07/image_17082025_00_07_35_10290.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_55_10254.jpg', '/mnt/data/17082025/00/07/image_17082025_00_08_04_9034.jpg', '/mnt/data/17082025/00/08/image_17082025_00_08_37_10193.jpg', '/mnt/data/17082025/00/08/image_17082025_00_08_45_9838.jpg', '/mnt/data/17082025/00/08/image_17082025_00_09_05_10215.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:37:25.917499
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/36/image_17082025_17_36_44_10205.jpg', 2), ('/mnt/data/17082025/17/32/image_17082025_17_32_24_10215.jpg', 2), ('/mnt/data/17082025/13/22/image_17082025_13_22_25_10204.jpg', 2), ('/mnt/data/17082025/13/18/image_17082025_13_18_34_10137.jpg', 2), ('/mnt/data/17082025/12/40/image_17082025_12_40_26_10249.jpg', 2), ('/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/36/image_17082025_17_36_44_10205.jpg', '/mnt/data/17082025/17/32/image_17082025_17_32_24_10215.jpg', '/mnt/data/17082025/13/22/image_17082025_13_22_25_10204.jpg', '/mnt/data/17082025/13/18/image_17082025_13_18_34_10137.jpg', '/mnt/data/17082025/12/40/image_17082025_12_40_26_10249.jpg', '/mnt/data/17082025/12/36/image_17082025_12_37_05_10272.jpg']
batch 1
begin to post requests
Result OK !
uploaded 6 photos
time to upload: 58.06927680969238 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:38:26.052949
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.2384192943573 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2), ('/mnt/data/17082025/12/09/image_17082025_12_09_15_10222.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', '/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', '/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', '/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', '/mnt/data/17082025/12/09/image_17082025_12_09_15_10222.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 17:39:02.914541
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2), ('/mnt/data/17082025/12/09/image_17082025_12_09_15_10222.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', '/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', '/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', '/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', '/mnt/data/17082025/12/09/image_17082025_12_09_15_10222.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', '/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', '/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', '/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', '/mnt/data/17082025/12/09/image_17082025_12_09_15_10222.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg
/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg
/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg
/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg
/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg
/mnt/data/17082025/12/09/image_17082025_12_09_15_10222.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.19946599006653 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:39:38.173771
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/07/image_17082025_00_07_35_10290.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_07_55_10254.jpg', 2), ('/mnt/data/17082025/00/07/image_17082025_00_08_04_9034.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_08_37_10193.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_08_45_9838.jpg', 2), ('/mnt/data/17082025/00/08/image_17082025_00_09_05_10215.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/07/image_17082025_00_07_35_10290.jpg', '/mnt/data/17082025/00/07/image_17082025_00_07_55_10254.jpg', '/mnt/data/17082025/00/07/image_17082025_00_08_04_9034.jpg', '/mnt/data/17082025/00/08/image_17082025_00_08_37_10193.jpg', '/mnt/data/17082025/00/08/image_17082025_00_08_45_9838.jpg', '/mnt/data/17082025/00/08/image_17082025_00_09_05_10215.jpg']
batch 1
begin to post requests
Result OK !
uploaded 6 photos
time to upload: 68.84815621376038 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:40:50.289562
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 31.30257296562195 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:41:26.447497
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.206193447113037 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', '/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', '/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', '/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', '/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 17:42:02.712182
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', '/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', '/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', '/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', '/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', '/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', '/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', '/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', '/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg
/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg
/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg
/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg
/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg
/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 33.4218270778656 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:42:38.303098
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 24.96057891845703 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:43:14.543724
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.194775342941284 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', '/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', '/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', '/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', '/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:43:50.435990
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.22262716293335 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:44:26.585013
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.202258586883545 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', '/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', '/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', '/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', '/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 17:45:03.243512
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', '/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', '/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', '/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', '/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', '/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', '/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', '/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', '/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg
/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg
/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg
/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg
/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg
/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.198831796646118 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:45:38.747480
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.22427535057068 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:46:13.853029
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.192874908447266 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', '/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', '/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', '/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', '/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:46:49.832873
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.205065965652466 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:47:25.976827
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.206350326538086 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', '/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', '/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', '/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', '/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 17:48:02.595039
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', '/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', '/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', '/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', '/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', '/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', '/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', '/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', '/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg
/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg
/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg
/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg
/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg
/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 31.20685315132141 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:48:38.129186
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.22884249687195 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:49:14.371576
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.198268175125122 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', '/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', '/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', '/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', '/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:49:50.261931
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.216673374176025 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:50:26.416298
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.185758113861084 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', 2), ('/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg', 2), ('/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', '/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg', '/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', '/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', '/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 17:51:03.236885
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', 2), ('/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg', 2), ('/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2), ('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', '/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg', '/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', '/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', '/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', '/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg', '/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', '/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', '/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg
/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg
/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg
/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg
/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg
/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20095467567444 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:51:38.564820
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.209155321121216 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:52:14.732179
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 31.588156938552856 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', 2), ('/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg', 2), ('/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', '/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg', '/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', '/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', '/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg', '/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:52:50.666364
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 12.533072471618652 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:53:13.952163
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.178777933120728 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', 2), ('/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg', 2), ('/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', '/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg', '/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', '/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', '/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg', '/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:53:49.836056
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.246864318847656 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:54:25.975508
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.194361686706543 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/51/image_17082025_17_51_25_10187.jpg', 2), ('/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', 2), ('/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/51/image_17082025_17_51_25_10187.jpg', '/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', '/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg', '/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', '/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', '/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 17:55:02.726282
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/17/51/image_17082025_17_51_25_10187.jpg', 2), ('/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', 2), ('/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/51/image_17082025_17_51_25_10187.jpg', '/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', '/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg', '/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', '/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', '/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/17/51/image_17082025_17_51_25_10187.jpg', '/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', '/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg', '/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', '/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', '/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/17/51/image_17082025_17_51_25_10187.jpg
/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg
/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg
/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg
/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg
/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.207677841186523 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:55:38.114542
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.47551131248474 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:56:14.280283
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.196065187454224 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg', 2), ('/mnt/data/17082025/17/55/image_17082025_17_55_45_10200.jpg', 2), ('/mnt/data/17082025/17/54/image_17082025_17_55_04_9100.jpg', 2), ('/mnt/data/17082025/17/54/image_17082025_17_54_55_10178.jpg', 2), ('/mnt/data/17082025/17/51/image_17082025_17_51_25_10187.jpg', 2), ('/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg', '/mnt/data/17082025/17/55/image_17082025_17_55_45_10200.jpg', '/mnt/data/17082025/17/54/image_17082025_17_55_04_9100.jpg', '/mnt/data/17082025/17/54/image_17082025_17_54_55_10178.jpg', '/mnt/data/17082025/17/51/image_17082025_17_51_25_10187.jpg', '/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:56:50.223113
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.230670928955078 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:57:26.397982
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.196030378341675 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg', 2), ('/mnt/data/17082025/17/55/image_17082025_17_55_45_10200.jpg', 2), ('/mnt/data/17082025/17/54/image_17082025_17_55_04_9100.jpg', 2), ('/mnt/data/17082025/17/54/image_17082025_17_54_55_10178.jpg', 2), ('/mnt/data/17082025/17/51/image_17082025_17_51_25_10187.jpg', 2), ('/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg', '/mnt/data/17082025/17/55/image_17082025_17_55_45_10200.jpg', '/mnt/data/17082025/17/54/image_17082025_17_55_04_9100.jpg', '/mnt/data/17082025/17/54/image_17082025_17_54_55_10178.jpg', '/mnt/data/17082025/17/51/image_17082025_17_51_25_10187.jpg', '/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 17:59:02.684294
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg', 2), ('/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg', 2), ('/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg', 2), ('/mnt/data/17082025/17/55/image_17082025_17_55_45_10200.jpg', 2), ('/mnt/data/17082025/17/54/image_17082025_17_55_04_9100.jpg', 2), ('/mnt/data/17082025/17/54/image_17082025_17_54_55_10178.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg', '/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg', '/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg', '/mnt/data/17082025/17/55/image_17082025_17_55_45_10200.jpg', '/mnt/data/17082025/17/54/image_17082025_17_55_04_9100.jpg', '/mnt/data/17082025/17/54/image_17082025_17_54_55_10178.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg', '/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg', '/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg', '/mnt/data/17082025/17/55/image_17082025_17_55_45_10200.jpg', '/mnt/data/17082025/17/54/image_17082025_17_55_04_9100.jpg', '/mnt/data/17082025/17/54/image_17082025_17_54_55_10178.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg
/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg
/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg
/mnt/data/17082025/17/55/image_17082025_17_55_45_10200.jpg
/mnt/data/17082025/17/54/image_17082025_17_55_04_9100.jpg
/mnt/data/17082025/17/54/image_17082025_17_54_55_10178.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 34.624008893966675 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 17:59:49.970828
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.230236291885376 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:00:26.091119
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.207346200942993 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/59/image_17082025_18_00_04_10432.jpg', 2), ('/mnt/data/17082025/17/59/image_17082025_17_59_35_9836.jpg', 2), ('/mnt/data/17082025/17/58/image_17082025_17_58_15_10253.jpg', 2), ('/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg', 2), ('/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg', 2), ('/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/59/image_17082025_18_00_04_10432.jpg', '/mnt/data/17082025/17/59/image_17082025_17_59_35_9836.jpg', '/mnt/data/17082025/17/58/image_17082025_17_58_15_10253.jpg', '/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg', '/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg', '/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 18:01:02.798684
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/17/59/image_17082025_18_00_04_10432.jpg', 2), ('/mnt/data/17082025/17/59/image_17082025_17_59_35_9836.jpg', 2), ('/mnt/data/17082025/17/58/image_17082025_17_58_15_10253.jpg', 2), ('/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg', 2), ('/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg', 2), ('/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/59/image_17082025_18_00_04_10432.jpg', '/mnt/data/17082025/17/59/image_17082025_17_59_35_9836.jpg', '/mnt/data/17082025/17/58/image_17082025_17_58_15_10253.jpg', '/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg', '/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg', '/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/17/59/image_17082025_18_00_04_10432.jpg', '/mnt/data/17082025/17/59/image_17082025_17_59_35_9836.jpg', '/mnt/data/17082025/17/58/image_17082025_17_58_15_10253.jpg', '/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg', '/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg', '/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/17/59/image_17082025_18_00_04_10432.jpg
/mnt/data/17082025/17/59/image_17082025_17_59_35_9836.jpg
/mnt/data/17082025/17/58/image_17082025_17_58_15_10253.jpg
/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg
/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg
/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 32.42439007759094 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:01:38.297816
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.200973510742188 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:02:14.477886
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.192033290863037 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/59/image_17082025_18_00_04_10432.jpg', 2), ('/mnt/data/17082025/17/59/image_17082025_17_59_35_9836.jpg', 2), ('/mnt/data/17082025/17/58/image_17082025_17_58_15_10253.jpg', 2), ('/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg', 2), ('/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg', 2), ('/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/59/image_17082025_18_00_04_10432.jpg', '/mnt/data/17082025/17/59/image_17082025_17_59_35_9836.jpg', '/mnt/data/17082025/17/58/image_17082025_17_58_15_10253.jpg', '/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg', '/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg', '/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:02:50.388906
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.204203605651855 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:03:26.558606
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.187419176101685 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/59/image_17082025_18_00_04_10432.jpg', 2), ('/mnt/data/17082025/17/59/image_17082025_17_59_35_9836.jpg', 2), ('/mnt/data/17082025/17/58/image_17082025_17_58_15_10253.jpg', 2), ('/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg', 2), ('/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg', 2), ('/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/59/image_17082025_18_00_04_10432.jpg', '/mnt/data/17082025/17/59/image_17082025_17_59_35_9836.jpg', '/mnt/data/17082025/17/58/image_17082025_17_58_15_10253.jpg', '/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg', '/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg', '/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 18:04:03.207327
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/17/59/image_17082025_18_00_04_10432.jpg', 2), ('/mnt/data/17082025/17/59/image_17082025_17_59_35_9836.jpg', 2), ('/mnt/data/17082025/17/58/image_17082025_17_58_15_10253.jpg', 2), ('/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg', 2), ('/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg', 2), ('/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/59/image_17082025_18_00_04_10432.jpg', '/mnt/data/17082025/17/59/image_17082025_17_59_35_9836.jpg', '/mnt/data/17082025/17/58/image_17082025_17_58_15_10253.jpg', '/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg', '/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg', '/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/17/59/image_17082025_18_00_04_10432.jpg', '/mnt/data/17082025/17/59/image_17082025_17_59_35_9836.jpg', '/mnt/data/17082025/17/58/image_17082025_17_58_15_10253.jpg', '/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg', '/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg', '/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/17/59/image_17082025_18_00_04_10432.jpg
/mnt/data/17082025/17/59/image_17082025_17_59_35_9836.jpg
/mnt/data/17082025/17/58/image_17082025_17_58_15_10253.jpg
/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg
/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg
/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 14.180201292037964 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:04:26.656114
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.214262008666992 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/59/image_17082025_18_00_04_10432.jpg', 2), ('/mnt/data/17082025/17/59/image_17082025_17_59_35_9836.jpg', 2), ('/mnt/data/17082025/17/58/image_17082025_17_58_15_10253.jpg', 2), ('/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg', 2), ('/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg', 2), ('/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/59/image_17082025_18_00_04_10432.jpg', '/mnt/data/17082025/17/59/image_17082025_17_59_35_9836.jpg', '/mnt/data/17082025/17/58/image_17082025_17_58_15_10253.jpg', '/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg', '/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg', '/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 18:05:02.399558
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/17/59/image_17082025_18_00_04_10432.jpg', 2), ('/mnt/data/17082025/17/59/image_17082025_17_59_35_9836.jpg', 2), ('/mnt/data/17082025/17/58/image_17082025_17_58_15_10253.jpg', 2), ('/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg', 2), ('/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg', 2), ('/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/59/image_17082025_18_00_04_10432.jpg', '/mnt/data/17082025/17/59/image_17082025_17_59_35_9836.jpg', '/mnt/data/17082025/17/58/image_17082025_17_58_15_10253.jpg', '/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg', '/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg', '/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/17/59/image_17082025_18_00_04_10432.jpg', '/mnt/data/17082025/17/59/image_17082025_17_59_35_9836.jpg', '/mnt/data/17082025/17/58/image_17082025_17_58_15_10253.jpg', '/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg', '/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg', '/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/17/59/image_17082025_18_00_04_10432.jpg
/mnt/data/17082025/17/59/image_17082025_17_59_35_9836.jpg
/mnt/data/17082025/17/58/image_17082025_17_58_15_10253.jpg
/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg
/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg
/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.206305027008057 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:05:37.824514
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.206050634384155 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:06:13.994667
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/05/image_17082025_18_05_55_10180.jpg', 2), ('/mnt/data/17082025/18/00/image_17082025_18_00_14_9997.jpg', 2), ('/mnt/data/17082025/17/59/image_17082025_18_00_04_10432.jpg', 2), ('/mnt/data/17082025/17/59/image_17082025_17_59_35_9836.jpg', 2), ('/mnt/data/17082025/17/58/image_17082025_17_58_15_10253.jpg', 2), ('/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/05/image_17082025_18_05_55_10180.jpg', '/mnt/data/17082025/18/00/image_17082025_18_00_14_9997.jpg', '/mnt/data/17082025/17/59/image_17082025_18_00_04_10432.jpg', '/mnt/data/17082025/17/59/image_17082025_17_59_35_9836.jpg', '/mnt/data/17082025/17/58/image_17082025_17_58_15_10253.jpg', '/mnt/data/17082025/17/57/image_17082025_17_58_04_10552.jpg']
batch 1
begin to post requests
Result OK !
uploaded 6 photos
time to upload: 66.64752840995789 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:07:26.119244
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg', 2), ('/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg', 2), ('/mnt/data/17082025/17/55/image_17082025_17_55_45_10200.jpg', 2), ('/mnt/data/17082025/17/54/image_17082025_17_55_04_9100.jpg', 2), ('/mnt/data/17082025/17/54/image_17082025_17_54_55_10178.jpg', 2), ('/mnt/data/17082025/17/51/image_17082025_17_51_25_10187.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/56/image_17082025_17_56_45_10223.jpg', '/mnt/data/17082025/17/55/image_17082025_17_56_04_9139.jpg', '/mnt/data/17082025/17/55/image_17082025_17_55_45_10200.jpg', '/mnt/data/17082025/17/54/image_17082025_17_55_04_9100.jpg', '/mnt/data/17082025/17/54/image_17082025_17_54_55_10178.jpg', '/mnt/data/17082025/17/51/image_17082025_17_51_25_10187.jpg']
batch 1
begin to post requests
Result OK !
uploaded 6 photos
time to upload: 71.16729927062988 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:08:38.565668
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.205673217773438 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:09:14.814441
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.18929100036621 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2), ('/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', '/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:09:50.725747
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20278549194336 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:10:26.027995
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg']
batch 1
begin to post requests
uploaded 0 photos
time to upload: 25.951035022735596 secondes ---
408
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 18:11:02.674413
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg
/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg
/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 32.82799768447876 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:11:38.153338
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.216822862625122 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:12:14.312096
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.19785976409912 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:12:50.264845
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 12.30277132987976 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:13:14.496035
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.21148371696472 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:13:50.361952
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.204549312591553 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:14:26.530626
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.204866647720337 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 18:15:03.297529
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg
/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg
/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20098066329956 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:15:38.704332
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.237096548080444 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:16:13.868625
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.210275888442993 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:16:49.815813
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20478105545044 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:17:25.980948
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.213639974594116 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 18:18:02.508607
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg
/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg
/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.19372057914734 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:18:38.093738
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.28439688682556 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:19:14.381078
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20510458946228 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:19:50.287999
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.222238779067993 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:20:26.435693
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
uploaded 0 photos
time to upload: 149.35059118270874 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_14_10108.jpg', 2), ('/mnt/data/17082025/18/10/image_17082025_18_10_14_10040.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_14_10108.jpg', '/mnt/data/17082025/18/10/image_17082025_18_10_14_10040.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Read timed out. (read timeout=120)
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 18:23:02.519904
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_14_10108.jpg', 2), ('/mnt/data/17082025/18/10/image_17082025_18_10_14_10040.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_14_10108.jpg', '/mnt/data/17082025/18/10/image_17082025_18_10_14_10040.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_14_10108.jpg', '/mnt/data/17082025/18/10/image_17082025_18_10_14_10040.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg
/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg
/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg
/mnt/data/17082025/18/20/image_17082025_18_20_14_10108.jpg
/mnt/data/17082025/18/10/image_17082025_18_10_14_10040.jpg
/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20693564414978 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:23:37.938605
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 33.317689418792725 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:24:14.209220
in upload_from_sqlite, uploading in 26044711
uploaded 0 photos
time to upload: 3.174511671066284 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/24/image_17082025_18_24_24_10276.jpg', 2), ('/mnt/data/17082025/18/23/image_17082025_18_23_44_10222.jpg', 2), ('/mnt/data/17082025/18/23/image_17082025_18_23_34_9010.jpg', 2), ('/mnt/data/17082025/18/22/image_17082025_18_23_05_10260.jpg', 2), ('/mnt/data/17082025/18/22/image_17082025_18_22_25_10198.jpg', 2), ('/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/24/image_17082025_18_24_24_10276.jpg', '/mnt/data/17082025/18/23/image_17082025_18_23_44_10222.jpg', '/mnt/data/17082025/18/23/image_17082025_18_23_34_9010.jpg', '/mnt/data/17082025/18/22/image_17082025_18_23_05_10260.jpg', '/mnt/data/17082025/18/22/image_17082025_18_22_25_10198.jpg', '/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg']
batch 1
begin to post requests
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:24:26.070420
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.182570934295654 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/24/image_17082025_18_24_24_10276.jpg', 2), ('/mnt/data/17082025/18/23/image_17082025_18_23_44_10222.jpg', 2), ('/mnt/data/17082025/18/23/image_17082025_18_23_34_9010.jpg', 2), ('/mnt/data/17082025/18/22/image_17082025_18_23_05_10260.jpg', 2), ('/mnt/data/17082025/18/22/image_17082025_18_22_25_10198.jpg', 2), ('/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/24/image_17082025_18_24_24_10276.jpg', '/mnt/data/17082025/18/23/image_17082025_18_23_44_10222.jpg', '/mnt/data/17082025/18/23/image_17082025_18_23_34_9010.jpg', '/mnt/data/17082025/18/22/image_17082025_18_23_05_10260.jpg', '/mnt/data/17082025/18/22/image_17082025_18_22_25_10198.jpg', '/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 18:25:02.796312
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/18/24/image_17082025_18_24_24_10276.jpg', 2), ('/mnt/data/17082025/18/23/image_17082025_18_23_44_10222.jpg', 2), ('/mnt/data/17082025/18/23/image_17082025_18_23_34_9010.jpg', 2), ('/mnt/data/17082025/18/22/image_17082025_18_23_05_10260.jpg', 2), ('/mnt/data/17082025/18/22/image_17082025_18_22_25_10198.jpg', 2), ('/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/24/image_17082025_18_24_24_10276.jpg', '/mnt/data/17082025/18/23/image_17082025_18_23_44_10222.jpg', '/mnt/data/17082025/18/23/image_17082025_18_23_34_9010.jpg', '/mnt/data/17082025/18/22/image_17082025_18_23_05_10260.jpg', '/mnt/data/17082025/18/22/image_17082025_18_22_25_10198.jpg', '/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/18/24/image_17082025_18_24_24_10276.jpg', '/mnt/data/17082025/18/23/image_17082025_18_23_44_10222.jpg', '/mnt/data/17082025/18/23/image_17082025_18_23_34_9010.jpg', '/mnt/data/17082025/18/22/image_17082025_18_23_05_10260.jpg', '/mnt/data/17082025/18/22/image_17082025_18_22_25_10198.jpg', '/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/18/24/image_17082025_18_24_24_10276.jpg
/mnt/data/17082025/18/23/image_17082025_18_23_44_10222.jpg
/mnt/data/17082025/18/23/image_17082025_18_23_34_9010.jpg
/mnt/data/17082025/18/22/image_17082025_18_23_05_10260.jpg
/mnt/data/17082025/18/22/image_17082025_18_22_25_10198.jpg
/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.19169545173645 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:25:38.194211
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.259028673171997 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:26:14.830379
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.186685800552368 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg', 2), ('/mnt/data/17082025/18/24/image_17082025_18_24_34_10217.jpg', 2), ('/mnt/data/17082025/18/24/image_17082025_18_24_24_10276.jpg', 2), ('/mnt/data/17082025/18/23/image_17082025_18_23_44_10222.jpg', 2), ('/mnt/data/17082025/18/23/image_17082025_18_23_34_9010.jpg', 2), ('/mnt/data/17082025/18/22/image_17082025_18_23_05_10260.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg', '/mnt/data/17082025/18/24/image_17082025_18_24_34_10217.jpg', '/mnt/data/17082025/18/24/image_17082025_18_24_24_10276.jpg', '/mnt/data/17082025/18/23/image_17082025_18_23_44_10222.jpg', '/mnt/data/17082025/18/23/image_17082025_18_23_34_9010.jpg', '/mnt/data/17082025/18/22/image_17082025_18_23_05_10260.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:26:50.706035
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.355839014053345 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:27:25.832035
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20238733291626 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg', 2), ('/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg', 2), ('/mnt/data/17082025/18/24/image_17082025_18_24_34_10217.jpg', 2), ('/mnt/data/17082025/18/24/image_17082025_18_24_24_10276.jpg', 2), ('/mnt/data/17082025/18/23/image_17082025_18_23_44_10222.jpg', 2), ('/mnt/data/17082025/18/23/image_17082025_18_23_34_9010.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg', '/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg', '/mnt/data/17082025/18/24/image_17082025_18_24_34_10217.jpg', '/mnt/data/17082025/18/24/image_17082025_18_24_24_10276.jpg', '/mnt/data/17082025/18/23/image_17082025_18_23_44_10222.jpg', '/mnt/data/17082025/18/23/image_17082025_18_23_34_9010.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 18:28:02.604170
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg', 2), ('/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg', 2), ('/mnt/data/17082025/18/24/image_17082025_18_24_34_10217.jpg', 2), ('/mnt/data/17082025/18/24/image_17082025_18_24_24_10276.jpg', 2), ('/mnt/data/17082025/18/23/image_17082025_18_23_44_10222.jpg', 2), ('/mnt/data/17082025/18/23/image_17082025_18_23_34_9010.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg', '/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg', '/mnt/data/17082025/18/24/image_17082025_18_24_34_10217.jpg', '/mnt/data/17082025/18/24/image_17082025_18_24_24_10276.jpg', '/mnt/data/17082025/18/23/image_17082025_18_23_44_10222.jpg', '/mnt/data/17082025/18/23/image_17082025_18_23_34_9010.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg', '/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg', '/mnt/data/17082025/18/24/image_17082025_18_24_34_10217.jpg', '/mnt/data/17082025/18/24/image_17082025_18_24_24_10276.jpg', '/mnt/data/17082025/18/23/image_17082025_18_23_44_10222.jpg', '/mnt/data/17082025/18/23/image_17082025_18_23_34_9010.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg
/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg
/mnt/data/17082025/18/24/image_17082025_18_24_34_10217.jpg
/mnt/data/17082025/18/24/image_17082025_18_24_24_10276.jpg
/mnt/data/17082025/18/23/image_17082025_18_23_44_10222.jpg
/mnt/data/17082025/18/23/image_17082025_18_23_34_9010.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 31.946993589401245 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:28:38.123387
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.222379446029663 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:29:14.385657
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.187587022781372 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/28/image_17082025_18_28_14_10201.jpg', 2), ('/mnt/data/17082025/18/27/image_17082025_18_27_15_10214.jpg', 2), ('/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg', 2), ('/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg', 2), ('/mnt/data/17082025/18/24/image_17082025_18_24_34_10217.jpg', 2), ('/mnt/data/17082025/18/24/image_17082025_18_24_24_10276.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/28/image_17082025_18_28_14_10201.jpg', '/mnt/data/17082025/18/27/image_17082025_18_27_15_10214.jpg', '/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg', '/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg', '/mnt/data/17082025/18/24/image_17082025_18_24_34_10217.jpg', '/mnt/data/17082025/18/24/image_17082025_18_24_24_10276.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:29:50.260177
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.213046550750732 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:30:26.390222
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.191735982894897 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/28/image_17082025_18_28_55_10212.jpg', 2), ('/mnt/data/17082025/18/28/image_17082025_18_28_14_10201.jpg', 2), ('/mnt/data/17082025/18/27/image_17082025_18_27_15_10214.jpg', 2), ('/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg', 2), ('/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg', 2), ('/mnt/data/17082025/18/24/image_17082025_18_24_34_10217.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/28/image_17082025_18_28_55_10212.jpg', '/mnt/data/17082025/18/28/image_17082025_18_28_14_10201.jpg', '/mnt/data/17082025/18/27/image_17082025_18_27_15_10214.jpg', '/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg', '/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg', '/mnt/data/17082025/18/24/image_17082025_18_24_34_10217.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 18:31:03.033514
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/18/28/image_17082025_18_28_55_10212.jpg', 2), ('/mnt/data/17082025/18/28/image_17082025_18_28_14_10201.jpg', 2), ('/mnt/data/17082025/18/27/image_17082025_18_27_15_10214.jpg', 2), ('/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg', 2), ('/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg', 2), ('/mnt/data/17082025/18/24/image_17082025_18_24_34_10217.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/28/image_17082025_18_28_55_10212.jpg', '/mnt/data/17082025/18/28/image_17082025_18_28_14_10201.jpg', '/mnt/data/17082025/18/27/image_17082025_18_27_15_10214.jpg', '/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg', '/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg', '/mnt/data/17082025/18/24/image_17082025_18_24_34_10217.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/18/28/image_17082025_18_28_55_10212.jpg', '/mnt/data/17082025/18/28/image_17082025_18_28_14_10201.jpg', '/mnt/data/17082025/18/27/image_17082025_18_27_15_10214.jpg', '/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg', '/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg', '/mnt/data/17082025/18/24/image_17082025_18_24_34_10217.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/18/28/image_17082025_18_28_55_10212.jpg
/mnt/data/17082025/18/28/image_17082025_18_28_14_10201.jpg
/mnt/data/17082025/18/27/image_17082025_18_27_15_10214.jpg
/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg
/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg
/mnt/data/17082025/18/24/image_17082025_18_24_34_10217.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 31.524255752563477 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:31:38.555702
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.22607135772705 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:32:14.909603
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.196888208389282 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/32/image_17082025_18_32_15_10090.jpg', 2), ('/mnt/data/17082025/18/28/image_17082025_18_28_55_10212.jpg', 2), ('/mnt/data/17082025/18/28/image_17082025_18_28_14_10201.jpg', 2), ('/mnt/data/17082025/18/27/image_17082025_18_27_15_10214.jpg', 2), ('/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg', 2), ('/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/32/image_17082025_18_32_15_10090.jpg', '/mnt/data/17082025/18/28/image_17082025_18_28_55_10212.jpg', '/mnt/data/17082025/18/28/image_17082025_18_28_14_10201.jpg', '/mnt/data/17082025/18/27/image_17082025_18_27_15_10214.jpg', '/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg', '/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:32:50.797561
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 11.825032472610474 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:33:14.154612
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 32.73834562301636 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/32/image_17082025_18_32_15_10090.jpg', 2), ('/mnt/data/17082025/18/28/image_17082025_18_28_55_10212.jpg', 2), ('/mnt/data/17082025/18/28/image_17082025_18_28_14_10201.jpg', 2), ('/mnt/data/17082025/18/27/image_17082025_18_27_15_10214.jpg', 2), ('/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg', 2), ('/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/32/image_17082025_18_32_15_10090.jpg', '/mnt/data/17082025/18/28/image_17082025_18_28_55_10212.jpg', '/mnt/data/17082025/18/28/image_17082025_18_28_14_10201.jpg', '/mnt/data/17082025/18/27/image_17082025_18_27_15_10214.jpg', '/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg', '/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:33:50.205547
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
uploaded 0 photos
time to upload: 141.44885516166687 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Read timed out. (read timeout=120)
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:36:14.710471
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.211830377578735 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/32/image_17082025_18_32_15_10090.jpg', 2), ('/mnt/data/17082025/18/28/image_17082025_18_28_55_10212.jpg', 2), ('/mnt/data/17082025/18/28/image_17082025_18_28_14_10201.jpg', 2), ('/mnt/data/17082025/18/27/image_17082025_18_27_15_10214.jpg', 2), ('/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg', 2), ('/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/32/image_17082025_18_32_15_10090.jpg', '/mnt/data/17082025/18/28/image_17082025_18_28_55_10212.jpg', '/mnt/data/17082025/18/28/image_17082025_18_28_14_10201.jpg', '/mnt/data/17082025/18/27/image_17082025_18_27_15_10214.jpg', '/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg', '/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:36:50.616021
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.22584867477417 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:37:26.760446
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.203651905059814 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/32/image_17082025_18_32_15_10090.jpg', 2), ('/mnt/data/17082025/18/28/image_17082025_18_28_55_10212.jpg', 2), ('/mnt/data/17082025/18/28/image_17082025_18_28_14_10201.jpg', 2), ('/mnt/data/17082025/18/27/image_17082025_18_27_15_10214.jpg', 2), ('/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg', 2), ('/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/32/image_17082025_18_32_15_10090.jpg', '/mnt/data/17082025/18/28/image_17082025_18_28_55_10212.jpg', '/mnt/data/17082025/18/28/image_17082025_18_28_14_10201.jpg', '/mnt/data/17082025/18/27/image_17082025_18_27_15_10214.jpg', '/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg', '/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 18:38:02.424621
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/18/32/image_17082025_18_32_15_10090.jpg', 2), ('/mnt/data/17082025/18/28/image_17082025_18_28_55_10212.jpg', 2), ('/mnt/data/17082025/18/28/image_17082025_18_28_14_10201.jpg', 2), ('/mnt/data/17082025/18/27/image_17082025_18_27_15_10214.jpg', 2), ('/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg', 2), ('/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/32/image_17082025_18_32_15_10090.jpg', '/mnt/data/17082025/18/28/image_17082025_18_28_55_10212.jpg', '/mnt/data/17082025/18/28/image_17082025_18_28_14_10201.jpg', '/mnt/data/17082025/18/27/image_17082025_18_27_15_10214.jpg', '/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg', '/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/18/32/image_17082025_18_32_15_10090.jpg', '/mnt/data/17082025/18/28/image_17082025_18_28_55_10212.jpg', '/mnt/data/17082025/18/28/image_17082025_18_28_14_10201.jpg', '/mnt/data/17082025/18/27/image_17082025_18_27_15_10214.jpg', '/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg', '/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/18/32/image_17082025_18_32_15_10090.jpg
/mnt/data/17082025/18/28/image_17082025_18_28_55_10212.jpg
/mnt/data/17082025/18/28/image_17082025_18_28_14_10201.jpg
/mnt/data/17082025/18/27/image_17082025_18_27_15_10214.jpg
/mnt/data/17082025/18/26/image_17082025_18_26_34_10210.jpg
/mnt/data/17082025/18/25/image_17082025_18_25_44_9033.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! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1377681939","1377681935","1377681938","1377681932","1377681928","1377681937"],"photo_ids_order":["1377681928","1377681932","1377681935","1377681937","1377681938","1377681939"],"photo_detail":[{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/b69bbf7f36a431268593d7d407c6f6e8.jpg","text":"TemporaryFile(/tmp/multipartBody5802859594896267080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755448773039,"filename":"image_17082025_18_25_44_9033.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/924fa1f592a2d4c8c66f6e643d15834d.jpg","text":"TemporaryFile(/tmp/multipartBody7962962493027162461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755448773039,"filename":"image_17082025_18_28_14_10201.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/fa20d342dd776bb244d0b2070f36768d.jpg","text":"TemporaryFile(/tmp/multipartBody117855817587446518asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755448773039,"filename":"image_17082025_18_26_34_10210.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/eac0d2eb6fd1b435c44093bfa79360e1.jpg","text":"TemporaryFile(/tmp/multipartBody4235921066978047178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755448773039,"filename":"image_17082025_18_28_55_10212.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/f50d8c2c1d8073255638ffeaa47376cb.jpg","text":"TemporaryFile(/tmp/multipartBody7648750293128582117asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755448773039,"filename":"image_17082025_18_32_15_10090.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/94b2376cf88e4934d6f66544e6e17d32.jpg","text":"TemporaryFile(/tmp/multipartBody6086538997000642392asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755448773039,"filename":"image_17082025_18_27_15_10214.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377681935","file1":"1377681932","file0":"1377681928","file4":"1377681938","file5":"1377681939","file3":"1377681937"},"map_files_photo_id_array":[{"photo_id":"1377681939","filename":"file5"},{"photo_id":"1377681935","filename":"file2"},{"photo_id":"1377681938","filename":"file4"},{"photo_id":"1377681932","filename":"file1"},{"photo_id":"1377681928","filename":"file0"},{"photo_id":"1377681937","filename":"file3"}],"portfolio_id":26044711,"hashtag_by_photo_ids":[{"1377681939":["hashtag1","hashtag2"]},{"1377681935":["hashtag1","hashtag2"]},{"1377681938":["hashtag1","hashtag2"]},{"1377681932":["hashtag1","hashtag2"]},{"1377681928":["hashtag1","hashtag2"]},{"1377681937":["hashtag1","hashtag2"]}],"comms":"Portfolio 26044711 used, photo_id : ArrayBuffer(1377681939, 1377681935, 1377681938, 1377681932, 1377681928, 1377681937)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 72.12131929397583 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:39:26.154240
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/24/image_17082025_18_24_34_10217.jpg', 2), ('/mnt/data/17082025/18/24/image_17082025_18_24_24_10276.jpg', 2), ('/mnt/data/17082025/18/23/image_17082025_18_23_44_10222.jpg', 2), ('/mnt/data/17082025/18/23/image_17082025_18_23_34_9010.jpg', 2), ('/mnt/data/17082025/18/22/image_17082025_18_23_05_10260.jpg', 2), ('/mnt/data/17082025/18/22/image_17082025_18_22_25_10198.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/24/image_17082025_18_24_34_10217.jpg', '/mnt/data/17082025/18/24/image_17082025_18_24_24_10276.jpg', '/mnt/data/17082025/18/23/image_17082025_18_23_44_10222.jpg', '/mnt/data/17082025/18/23/image_17082025_18_23_34_9010.jpg', '/mnt/data/17082025/18/22/image_17082025_18_23_05_10260.jpg', '/mnt/data/17082025/18/22/image_17082025_18_22_25_10198.jpg']
batch 1
begin to post requests
Result OK !
uploaded 6 photos
time to upload: 69.74922180175781 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:40:38.299579
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.204214334487915 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:41:14.526918
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.187149047851562 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', 2), ('/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg', 2), ('/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', '/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg', '/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:41:50.398173
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.217344522476196 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:42:26.554879
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.202813386917114 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', 2), ('/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg', 2), ('/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', '/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg', '/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 18:43:03.292684
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', 2), ('/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg', 2), ('/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', '/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg', '/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', '/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg', '/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg
/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg
/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg
/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg
/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg
/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.209059476852417 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:43:38.679355
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20762062072754 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:44:13.881569
in upload_from_sqlite, uploading in 26044711
uploaded 0 photos
time to upload: 3.257117509841919 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', 2), ('/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg', 2), ('/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', '/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg', '/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg']
batch 1
begin to post requests
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:44:25.821617
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.18845772743225 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', 2), ('/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg', 2), ('/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', '/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg', '/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 18:45:02.648548
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', 2), ('/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg', 2), ('/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', '/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg', '/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', '/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg', '/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg
/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg
/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg
/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg
/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg
/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.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! 
uploaded 0 photos
time to upload: 149.59367537498474 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Read timed out. (read timeout=120)
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:47:38.196203
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20500421524048 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:48:14.413066
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 32.04205083847046 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/48/image_17082025_18_48_34_8975.jpg', 2), ('/mnt/data/17082025/18/47/image_17082025_18_47_34_9189.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_54_10228.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_34_9035.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', 2), ('/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/48/image_17082025_18_48_34_8975.jpg', '/mnt/data/17082025/18/47/image_17082025_18_47_34_9189.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_54_10228.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_34_9035.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:48:50.386132
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20767569541931 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:49:26.537423
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.179274320602417 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/48/image_17082025_18_48_54_10161.jpg', 2), ('/mnt/data/17082025/18/48/image_17082025_18_48_34_8975.jpg', 2), ('/mnt/data/17082025/18/47/image_17082025_18_47_34_9189.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_54_10228.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_34_9035.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/48/image_17082025_18_48_54_10161.jpg', '/mnt/data/17082025/18/48/image_17082025_18_48_34_8975.jpg', '/mnt/data/17082025/18/47/image_17082025_18_47_34_9189.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_54_10228.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_34_9035.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 18:50:03.069845
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/18/50/image_17082025_18_50_34_9979.jpg', 2), ('/mnt/data/17082025/18/48/image_17082025_18_48_54_10161.jpg', 2), ('/mnt/data/17082025/18/48/image_17082025_18_48_34_8975.jpg', 2), ('/mnt/data/17082025/18/47/image_17082025_18_47_34_9189.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_54_10228.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_34_9035.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/50/image_17082025_18_50_34_9979.jpg', '/mnt/data/17082025/18/48/image_17082025_18_48_54_10161.jpg', '/mnt/data/17082025/18/48/image_17082025_18_48_34_8975.jpg', '/mnt/data/17082025/18/47/image_17082025_18_47_34_9189.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_54_10228.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_34_9035.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/18/50/image_17082025_18_50_34_9979.jpg', '/mnt/data/17082025/18/48/image_17082025_18_48_54_10161.jpg', '/mnt/data/17082025/18/48/image_17082025_18_48_34_8975.jpg', '/mnt/data/17082025/18/47/image_17082025_18_47_34_9189.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_54_10228.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_34_9035.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/18/50/image_17082025_18_50_34_9979.jpg
/mnt/data/17082025/18/48/image_17082025_18_48_54_10161.jpg
/mnt/data/17082025/18/48/image_17082025_18_48_34_8975.jpg
/mnt/data/17082025/18/47/image_17082025_18_47_34_9189.jpg
/mnt/data/17082025/18/46/image_17082025_18_46_54_10228.jpg
/mnt/data/17082025/18/46/image_17082025_18_46_34_9035.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1377682236","1377682239","1377682230","1377682241","1377682223","1377682226"],"photo_ids_order":["1377682223","1377682226","1377682230","1377682236","1377682239","1377682241"],"photo_detail":[{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/f2d795358dfa2f34115051f912eafde6.jpg","text":"TemporaryFile(/tmp/multipartBody3301999780748531196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755449478222,"filename":"image_17082025_18_47_34_9189.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/2fe37fed8ba63c281b2d2aa251f18720.jpg","text":"TemporaryFile(/tmp/multipartBody1864696736711204259asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755449478222,"filename":"image_17082025_18_46_54_10228.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/3d21349354d827163e50bf8dc947e21c.jpg","text":"TemporaryFile(/tmp/multipartBody3070687009048392074asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755449478222,"filename":"image_17082025_18_48_34_8975.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/629421f7df4a1b589d6ab9ede449496e.jpg","text":"TemporaryFile(/tmp/multipartBody7639376269885572273asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755449478222,"filename":"image_17082025_18_46_34_9035.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/bc4952cafa22daf8ef5456b0e5670594.jpg","text":"TemporaryFile(/tmp/multipartBody4848973701647922148asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755449478222,"filename":"image_17082025_18_50_34_9979.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/5936e03830b1ec4ce6f73b0c0c725ad1.jpg","text":"TemporaryFile(/tmp/multipartBody1559393196282888885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755449478222,"filename":"image_17082025_18_48_54_10161.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377682230","file1":"1377682226","file0":"1377682223","file4":"1377682239","file5":"1377682241","file3":"1377682236"},"map_files_photo_id_array":[{"photo_id":"1377682241","filename":"file5"},{"photo_id":"1377682230","filename":"file2"},{"photo_id":"1377682239","filename":"file4"},{"photo_id":"1377682226","filename":"file1"},{"photo_id":"1377682223","filename":"file0"},{"photo_id":"1377682236","filename":"file3"}],"portfolio_id":26044711,"hashtag_by_photo_ids":[{"1377682236":["hashtag1","hashtag2"]},{"1377682239":["hashtag1","hashtag2"]},{"1377682230":["hashtag1","hashtag2"]},{"1377682241":["hashtag1","hashtag2"]},{"1377682223":["hashtag1","hashtag2"]},{"1377682226":["hashtag1","hashtag2"]}],"comms":"Portfolio 26044711 used, photo_id : ArrayBuffer(1377682236, 1377682239, 1377682230, 1377682241, 1377682223, 1377682226)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 54.539743185043335 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 18:51:02.375583
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', 2), ('/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', 2), ('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg
/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg
/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg
/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg
/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg
/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.189404249191284 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:51:37.830989
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.218868732452393 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:52:13.984258
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.437676906585693 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', 2), ('/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', 2), ('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:52:49.966358
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 12.481381893157959 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:53:14.164722
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.180126905441284 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', 2), ('/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', 2), ('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:53:50.123612
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 27.29189896583557 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:54:26.381237
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20442771911621 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', 2), ('/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', 2), ('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 18:55:02.972511
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', 2), ('/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', 2), ('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg
/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg
/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg
/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg
/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg
/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.213154315948486 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:55:38.366682
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.250041246414185 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:56:14.566875
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.19086480140686 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', 2), ('/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', 2), ('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:56:50.567299
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.206462383270264 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:57:26.705495
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.18444299697876 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', 2), ('/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', 2), ('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 18:59:02.906641
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', 2), ('/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', 2), ('/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', 2), ('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', '/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', '/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg
/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg
/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg
/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg
/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg
/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.202234268188477 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 18:59:38.279466
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.214521169662476 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:00:14.429374
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.184436559677124 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', 2), ('/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', 2), ('/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', 2), ('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', '/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:00:50.426497
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.2119619846344 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:01:26.580744
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.181281805038452 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', 2), ('/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', 2), ('/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', 2), ('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', '/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 19:02:03.178600
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', 2), ('/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', 2), ('/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', 2), ('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', '/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', '/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg
/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg
/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg
/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg
/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg
/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.18154811859131 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:02:38.699721
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 31.22782564163208 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:03:13.919584
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
uploaded 0 photos
time to upload: 148.302668094635 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', 2), ('/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', 2), ('/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', 2), ('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', '/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Read timed out. (read timeout=120)
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:05:50.124511
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.205872535705566 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:06:26.293723
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.18018364906311 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', 2), ('/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', 2), ('/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', 2), ('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', '/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 19:07:03.030118
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', 2), ('/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', 2), ('/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', 2), ('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', '/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', '/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg
/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg
/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg
/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg
/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg
/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.211646795272827 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:07:38.431999
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.225959300994873 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:08:14.574650
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 31.192718029022217 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/08/image_17082025_19_08_55_11147.jpg', 2), ('/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', 2), ('/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', 2), ('/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', 2), ('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/08/image_17082025_19_08_55_11147.jpg', '/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', '/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:08:50.544156
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.204231023788452 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:09:26.675200
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.180533409118652 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/08/image_17082025_19_08_55_11147.jpg', 2), ('/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', 2), ('/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', 2), ('/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', 2), ('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/08/image_17082025_19_08_55_11147.jpg', '/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', '/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 19:10:02.181894
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/19/08/image_17082025_19_08_55_11147.jpg', 2), ('/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', 2), ('/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', 2), ('/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', 2), ('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/08/image_17082025_19_08_55_11147.jpg', '/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', '/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/19/08/image_17082025_19_08_55_11147.jpg', '/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', '/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/19/08/image_17082025_19_08_55_11147.jpg
/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg
/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg
/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg
/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg
/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 34.96248388290405 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:10:49.801322
in upload_from_sqlite, uploading in 26044711
uploaded 0 photos
time to upload: 8.158403873443604 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 19:11:02.386303
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/19/08/image_17082025_19_08_55_11147.jpg', 2), ('/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', 2), ('/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', 2), ('/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', 2), ('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/08/image_17082025_19_08_55_11147.jpg', '/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', '/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/19/08/image_17082025_19_08_55_11147.jpg', '/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', '/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/19/08/image_17082025_19_08_55_11147.jpg
/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg
/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg
/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg
/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg
/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 33.005467653274536 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:11:38.076373
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.22939920425415 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:12:14.466999
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.194814443588257 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/08/image_17082025_19_08_55_11147.jpg', 2), ('/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', 2), ('/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', 2), ('/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', 2), ('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/08/image_17082025_19_08_55_11147.jpg', '/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', '/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:12:50.331896
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', 2), ('/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', 2), ('/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/09/image_17082025_00_09_35_10220.jpg', '/mnt/data/17082025/00/09/image_17082025_00_09_54_8969.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_15_10257.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_35_10204.jpg', '/mnt/data/17082025/00/10/image_17082025_00_10_44_8982.jpg', '/mnt/data/17082025/00/11/image_17082025_00_11_44_10213.jpg']
batch 1
begin to post requests
Result OK !
uploaded 6 photos
time to upload: 63.52502179145813 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 19:14:03.226759
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/19/08/image_17082025_19_08_55_11147.jpg', 2), ('/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', 2), ('/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', 2), ('/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', 2), ('/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', 2), ('/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/08/image_17082025_19_08_55_11147.jpg', '/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', '/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/19/08/image_17082025_19_08_55_11147.jpg', '/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg', '/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg', '/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg', '/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg', '/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/19/08/image_17082025_19_08_55_11147.jpg
/mnt/data/17082025/18/59/image_17082025_18_59_45_9948.jpg
/mnt/data/17082025/18/49/image_17082025_18_49_34_8948.jpg
/mnt/data/17082025/18/46/image_17082025_18_46_25_10269.jpg
/mnt/data/17082025/18/45/image_17082025_18_45_14_10222.jpg
/mnt/data/17082025/18/41/image_17082025_18_41_24_8965.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! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1377685486","1377685489","1377685488","1377685479","1377685487","1377685484"],"photo_ids_order":["1377685479","1377685484","1377685486","1377685487","1377685488","1377685489"],"photo_detail":[{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/fc8425a6cad29664578f118df16ed916.jpg","text":"TemporaryFile(/tmp/multipartBody6471909084426568977asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755450923545,"filename":"image_17082025_18_49_34_8948.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/75532116bc42f31de1ae529117af9148.jpg","text":"TemporaryFile(/tmp/multipartBody2414979673394849146asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755450923545,"filename":"image_17082025_18_41_24_8965.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/e35c986457512c35f80f5901690c72ea.jpg","text":"TemporaryFile(/tmp/multipartBody8093216517200206937asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755450923545,"filename":"image_17082025_18_45_14_10222.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/22913e6fb398788abc4a0f341f5b158d.jpg","text":"TemporaryFile(/tmp/multipartBody7105771587213363740asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755450923545,"filename":"image_17082025_19_08_55_11147.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/5052ff4b2c01258cb67aabe81821420b.jpg","text":"TemporaryFile(/tmp/multipartBody5118516679518376851asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755450923545,"filename":"image_17082025_18_46_25_10269.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/4e2ec4873d52311f5e879bf5cecb63a4.jpg","text":"TemporaryFile(/tmp/multipartBody7116544778308506674asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755450923545,"filename":"image_17082025_18_59_45_9948.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377685486","file1":"1377685484","file0":"1377685479","file4":"1377685488","file5":"1377685489","file3":"1377685487"},"map_files_photo_id_array":[{"photo_id":"1377685489","filename":"file5"},{"photo_id":"1377685486","filename":"file2"},{"photo_id":"1377685488","filename":"file4"},{"photo_id":"1377685484","filename":"file1"},{"photo_id":"1377685479","filename":"file0"},{"photo_id":"1377685487","filename":"file3"}],"portfolio_id":26044711,"hashtag_by_photo_ids":[{"1377685486":["hashtag1","hashtag2"]},{"1377685489":["hashtag1","hashtag2"]},{"1377685488":["hashtag1","hashtag2"]},{"1377685479":["hashtag1","hashtag2"]},{"1377685487":["hashtag1","hashtag2"]},{"1377685484":["hashtag1","hashtag2"]}],"comms":"Portfolio 26044711 used, photo_id : ArrayBuffer(1377685486, 1377685489, 1377685488, 1377685479, 1377685487, 1377685484)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 58.51784706115723 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:15:13.891986
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.1792209148407 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', 2), ('/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg', 2), ('/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', '/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg', '/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:15:49.805075
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.324865579605103 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:16:25.967220
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 31.08931851387024 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', 2), ('/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg', 2), ('/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', '/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg', '/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 19:17:02.602906
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', 2), ('/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg', 2), ('/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', '/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg', '/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', '/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg', '/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg
/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg
/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg
/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg
/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg
/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 32.55066275596619 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:17:38.139434
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.204296588897705 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:18:14.275424
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', 2), ('/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', 2), ('/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg', 2), ('/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/40/image_17082025_18_40_24_8981.jpg', '/mnt/data/17082025/18/40/image_17082025_18_40_15_10113.jpg', '/mnt/data/17082025/18/30/image_17082025_18_30_15_10060.jpg', '/mnt/data/17082025/18/21/image_17082025_18_21_54_10164.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_54_9029.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_35_10224.jpg']
batch 1
begin to post requests
Result OK !
uploaded 6 photos
time to upload: 69.20607352256775 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:19:26.409689
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.179058074951172 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/20/image_17082025_18_20_14_10108.jpg', 2), ('/mnt/data/17082025/18/10/image_17082025_18_10_14_10040.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/20/image_17082025_18_20_14_10108.jpg', '/mnt/data/17082025/18/10/image_17082025_18_10_14_10040.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 19:20:02.901892
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/18/20/image_17082025_18_20_14_10108.jpg', 2), ('/mnt/data/17082025/18/10/image_17082025_18_10_14_10040.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/20/image_17082025_18_20_14_10108.jpg', '/mnt/data/17082025/18/10/image_17082025_18_10_14_10040.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/18/20/image_17082025_18_20_14_10108.jpg', '/mnt/data/17082025/18/10/image_17082025_18_10_14_10040.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/18/20/image_17082025_18_20_14_10108.jpg
/mnt/data/17082025/18/10/image_17082025_18_10_14_10040.jpg
/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg
/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg
/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 31.849941968917847 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:20:38.516239
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.22559928894043 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:21:14.854456
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.203330039978027 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/21/image_17082025_19_21_44_10323.jpg', 2), ('/mnt/data/17082025/19/21/image_17082025_19_21_25_10107.jpg', 2), ('/mnt/data/17082025/19/20/image_17082025_19_21_05_10215.jpg', 2), ('/mnt/data/17082025/19/20/image_17082025_19_20_15_10193.jpg', 2), ('/mnt/data/17082025/18/50/image_17082025_18_50_14_9007.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_14_10108.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/21/image_17082025_19_21_44_10323.jpg', '/mnt/data/17082025/19/21/image_17082025_19_21_25_10107.jpg', '/mnt/data/17082025/19/20/image_17082025_19_21_05_10215.jpg', '/mnt/data/17082025/19/20/image_17082025_19_20_15_10193.jpg', '/mnt/data/17082025/18/50/image_17082025_18_50_14_9007.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_14_10108.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:21:50.659835
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.218244075775146 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:22:25.776312
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.183677911758423 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/21/image_17082025_19_21_55_10250.jpg', 2), ('/mnt/data/17082025/19/21/image_17082025_19_21_44_10323.jpg', 2), ('/mnt/data/17082025/19/21/image_17082025_19_21_25_10107.jpg', 2), ('/mnt/data/17082025/19/20/image_17082025_19_21_05_10215.jpg', 2), ('/mnt/data/17082025/19/20/image_17082025_19_20_15_10193.jpg', 2), ('/mnt/data/17082025/18/50/image_17082025_18_50_14_9007.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/21/image_17082025_19_21_55_10250.jpg', '/mnt/data/17082025/19/21/image_17082025_19_21_44_10323.jpg', '/mnt/data/17082025/19/21/image_17082025_19_21_25_10107.jpg', '/mnt/data/17082025/19/20/image_17082025_19_21_05_10215.jpg', '/mnt/data/17082025/19/20/image_17082025_19_20_15_10193.jpg', '/mnt/data/17082025/18/50/image_17082025_18_50_14_9007.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 19:23:02.620507
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/19/21/image_17082025_19_21_55_10250.jpg', 2), ('/mnt/data/17082025/19/21/image_17082025_19_21_44_10323.jpg', 2), ('/mnt/data/17082025/19/21/image_17082025_19_21_25_10107.jpg', 2), ('/mnt/data/17082025/19/20/image_17082025_19_21_05_10215.jpg', 2), ('/mnt/data/17082025/19/20/image_17082025_19_20_15_10193.jpg', 2), ('/mnt/data/17082025/18/50/image_17082025_18_50_14_9007.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/21/image_17082025_19_21_55_10250.jpg', '/mnt/data/17082025/19/21/image_17082025_19_21_44_10323.jpg', '/mnt/data/17082025/19/21/image_17082025_19_21_25_10107.jpg', '/mnt/data/17082025/19/20/image_17082025_19_21_05_10215.jpg', '/mnt/data/17082025/19/20/image_17082025_19_20_15_10193.jpg', '/mnt/data/17082025/18/50/image_17082025_18_50_14_9007.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/19/21/image_17082025_19_21_55_10250.jpg', '/mnt/data/17082025/19/21/image_17082025_19_21_44_10323.jpg', '/mnt/data/17082025/19/21/image_17082025_19_21_25_10107.jpg', '/mnt/data/17082025/19/20/image_17082025_19_21_05_10215.jpg', '/mnt/data/17082025/19/20/image_17082025_19_20_15_10193.jpg', '/mnt/data/17082025/18/50/image_17082025_18_50_14_9007.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/19/21/image_17082025_19_21_55_10250.jpg
/mnt/data/17082025/19/21/image_17082025_19_21_44_10323.jpg
/mnt/data/17082025/19/21/image_17082025_19_21_25_10107.jpg
/mnt/data/17082025/19/20/image_17082025_19_21_05_10215.jpg
/mnt/data/17082025/19/20/image_17082025_19_20_15_10193.jpg
/mnt/data/17082025/18/50/image_17082025_18_50_14_9007.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.201183795928955 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:23:37.981913
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.21196222305298 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:24:14.223797
in upload_from_sqlite, uploading in 26044711
uploaded 0 photos
time to upload: 3.1438002586364746 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/24/image_17082025_19_24_35_10228.jpg', 2), ('/mnt/data/17082025/19/24/image_17082025_19_24_14_10218.jpg', 2), ('/mnt/data/17082025/19/23/image_17082025_19_23_55_10191.jpg', 2), ('/mnt/data/17082025/19/23/image_17082025_19_23_45_10276.jpg', 2), ('/mnt/data/17082025/19/22/image_17082025_19_23_05_10227.jpg', 2), ('/mnt/data/17082025/19/21/image_17082025_19_22_05_10304.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/24/image_17082025_19_24_35_10228.jpg', '/mnt/data/17082025/19/24/image_17082025_19_24_14_10218.jpg', '/mnt/data/17082025/19/23/image_17082025_19_23_55_10191.jpg', '/mnt/data/17082025/19/23/image_17082025_19_23_45_10276.jpg', '/mnt/data/17082025/19/22/image_17082025_19_23_05_10227.jpg', '/mnt/data/17082025/19/21/image_17082025_19_22_05_10304.jpg']
batch 1
begin to post requests
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:24:26.169671
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.21215581893921 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/24/image_17082025_19_24_35_10228.jpg', 2), ('/mnt/data/17082025/19/24/image_17082025_19_24_14_10218.jpg', 2), ('/mnt/data/17082025/19/23/image_17082025_19_23_55_10191.jpg', 2), ('/mnt/data/17082025/19/23/image_17082025_19_23_45_10276.jpg', 2), ('/mnt/data/17082025/19/22/image_17082025_19_23_05_10227.jpg', 2), ('/mnt/data/17082025/19/21/image_17082025_19_22_05_10304.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/24/image_17082025_19_24_35_10228.jpg', '/mnt/data/17082025/19/24/image_17082025_19_24_14_10218.jpg', '/mnt/data/17082025/19/23/image_17082025_19_23_55_10191.jpg', '/mnt/data/17082025/19/23/image_17082025_19_23_45_10276.jpg', '/mnt/data/17082025/19/22/image_17082025_19_23_05_10227.jpg', '/mnt/data/17082025/19/21/image_17082025_19_22_05_10304.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 19:25:03.213139
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/19/24/image_17082025_19_24_35_10228.jpg', 2), ('/mnt/data/17082025/19/24/image_17082025_19_24_14_10218.jpg', 2), ('/mnt/data/17082025/19/23/image_17082025_19_23_55_10191.jpg', 2), ('/mnt/data/17082025/19/23/image_17082025_19_23_45_10276.jpg', 2), ('/mnt/data/17082025/19/22/image_17082025_19_23_05_10227.jpg', 2), ('/mnt/data/17082025/19/21/image_17082025_19_22_05_10304.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/24/image_17082025_19_24_35_10228.jpg', '/mnt/data/17082025/19/24/image_17082025_19_24_14_10218.jpg', '/mnt/data/17082025/19/23/image_17082025_19_23_55_10191.jpg', '/mnt/data/17082025/19/23/image_17082025_19_23_45_10276.jpg', '/mnt/data/17082025/19/22/image_17082025_19_23_05_10227.jpg', '/mnt/data/17082025/19/21/image_17082025_19_22_05_10304.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/19/24/image_17082025_19_24_35_10228.jpg', '/mnt/data/17082025/19/24/image_17082025_19_24_14_10218.jpg', '/mnt/data/17082025/19/23/image_17082025_19_23_55_10191.jpg', '/mnt/data/17082025/19/23/image_17082025_19_23_45_10276.jpg', '/mnt/data/17082025/19/22/image_17082025_19_23_05_10227.jpg', '/mnt/data/17082025/19/21/image_17082025_19_22_05_10304.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/19/24/image_17082025_19_24_35_10228.jpg
/mnt/data/17082025/19/24/image_17082025_19_24_14_10218.jpg
/mnt/data/17082025/19/23/image_17082025_19_23_55_10191.jpg
/mnt/data/17082025/19/23/image_17082025_19_23_45_10276.jpg
/mnt/data/17082025/19/22/image_17082025_19_23_05_10227.jpg
/mnt/data/17082025/19/21/image_17082025_19_22_05_10304.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.444833278656006 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:25:38.275027
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.22296380996704 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:26:14.509502
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.236217737197876 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/25/image_17082025_19_25_54_10229.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_25_34_8974.jpg', 2), ('/mnt/data/17082025/19/24/image_17082025_19_24_54_10264.jpg', 2), ('/mnt/data/17082025/19/24/image_17082025_19_24_35_10228.jpg', 2), ('/mnt/data/17082025/19/24/image_17082025_19_24_14_10218.jpg', 2), ('/mnt/data/17082025/19/23/image_17082025_19_23_55_10191.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/25/image_17082025_19_25_54_10229.jpg', '/mnt/data/17082025/19/25/image_17082025_19_25_34_8974.jpg', '/mnt/data/17082025/19/24/image_17082025_19_24_54_10264.jpg', '/mnt/data/17082025/19/24/image_17082025_19_24_35_10228.jpg', '/mnt/data/17082025/19/24/image_17082025_19_24_14_10218.jpg', '/mnt/data/17082025/19/23/image_17082025_19_23_55_10191.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:26:50.362709
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.22645115852356 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:27:26.518403
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.212379932403564 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_25_54_10229.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_25_34_8974.jpg', 2), ('/mnt/data/17082025/19/24/image_17082025_19_24_54_10264.jpg', 2), ('/mnt/data/17082025/19/24/image_17082025_19_24_35_10228.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', '/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg', '/mnt/data/17082025/19/25/image_17082025_19_25_54_10229.jpg', '/mnt/data/17082025/19/25/image_17082025_19_25_34_8974.jpg', '/mnt/data/17082025/19/24/image_17082025_19_24_54_10264.jpg', '/mnt/data/17082025/19/24/image_17082025_19_24_35_10228.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 19:28:02.863656
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_25_54_10229.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_25_34_8974.jpg', 2), ('/mnt/data/17082025/19/24/image_17082025_19_24_54_10264.jpg', 2), ('/mnt/data/17082025/19/24/image_17082025_19_24_35_10228.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', '/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg', '/mnt/data/17082025/19/25/image_17082025_19_25_54_10229.jpg', '/mnt/data/17082025/19/25/image_17082025_19_25_34_8974.jpg', '/mnt/data/17082025/19/24/image_17082025_19_24_54_10264.jpg', '/mnt/data/17082025/19/24/image_17082025_19_24_35_10228.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', '/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg', '/mnt/data/17082025/19/25/image_17082025_19_25_54_10229.jpg', '/mnt/data/17082025/19/25/image_17082025_19_25_34_8974.jpg', '/mnt/data/17082025/19/24/image_17082025_19_24_54_10264.jpg', '/mnt/data/17082025/19/24/image_17082025_19_24_35_10228.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg
/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg
/mnt/data/17082025/19/25/image_17082025_19_25_54_10229.jpg
/mnt/data/17082025/19/25/image_17082025_19_25_34_8974.jpg
/mnt/data/17082025/19/24/image_17082025_19_24_54_10264.jpg
/mnt/data/17082025/19/24/image_17082025_19_24_35_10228.jpg
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.213576793670654 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:28:50.696698
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.203197240829468 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:29:25.846274
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.179484128952026 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', 2), ('/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_25_54_10229.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', '/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', '/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', '/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', '/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg', '/mnt/data/17082025/19/25/image_17082025_19_25_54_10229.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 19:30:02.347953
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', 2), ('/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_25_54_10229.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', '/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', '/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', '/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', '/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg', '/mnt/data/17082025/19/25/image_17082025_19_25_54_10229.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', '/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', '/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', '/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', '/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg', '/mnt/data/17082025/19/25/image_17082025_19_25_54_10229.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg
/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg
/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg
/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg
/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg
/mnt/data/17082025/19/25/image_17082025_19_25_54_10229.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.2151358127594 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:30:37.961194
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.232686519622803 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:31:14.158690
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.19509983062744 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', 2), ('/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', 2), ('/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', '/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', '/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', '/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', '/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', '/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:31:50.097404
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.2204806804657 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:32:26.224367
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20825457572937 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', 2), ('/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', 2), ('/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', '/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', '/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', '/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', '/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', '/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 19:33:02.987538
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', 2), ('/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', 2), ('/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', '/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', '/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', '/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', '/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', '/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', '/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', '/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', '/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', '/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', '/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg
/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg
/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg
/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg
/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg
/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 31.128016233444214 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:33:38.365805
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.2093608379364 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:34:14.644397
in upload_from_sqlite, uploading in 26044711
uploaded 0 photos
time to upload: 2.591186046600342 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', 2), ('/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', 2), ('/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', '/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', '/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', '/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', '/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', '/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg']
batch 1
begin to post requests
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:34:26.489527
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.18182873725891 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', 2), ('/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', 2), ('/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', '/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', '/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', '/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', '/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', '/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 19:35:03.348241
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', 2), ('/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', 2), ('/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', '/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', '/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', '/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', '/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', '/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', '/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', '/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', '/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', '/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', '/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg
/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg
/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg
/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg
/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg
/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.233614683151245 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:35:38.659573
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.204368114471436 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:36:13.842524
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.19412326812744 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', 2), ('/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', 2), ('/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', '/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', '/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', '/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', '/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', '/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:36:49.812641
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.229182720184326 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:37:25.966626
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.187041997909546 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', 2), ('/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', 2), ('/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', '/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', '/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', '/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', '/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', '/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 19:38:02.539757
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', 2), ('/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', 2), ('/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', '/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', '/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', '/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', '/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', '/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', '/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', '/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', '/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', '/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', '/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg
/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg
/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg
/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg
/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg
/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 31.922171115875244 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:38:38.092211
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.2137393951416 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:39:14.378943
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.183918476104736 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', 2), ('/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', 2), ('/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', '/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', '/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', '/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', '/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', '/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:39:50.316714
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.229498386383057 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:40:26.470006
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', 2), ('/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', 2), ('/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', 2), ('/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/28/image_17082025_19_28_35_10219.jpg', '/mnt/data/17082025/19/28/image_17082025_19_28_25_10410.jpg', '/mnt/data/17082025/19/27/image_17082025_19_28_04_9101.jpg', '/mnt/data/17082025/19/27/image_17082025_19_27_34_10269.jpg', '/mnt/data/17082025/19/26/image_17082025_19_27_05_10226.jpg', '/mnt/data/17082025/19/25/image_17082025_19_26_05_10240.jpg']
batch 1
begin to post requests
Result OK !
uploaded 6 photos
time to upload: 66.8844804763794 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:41:38.584280
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.45801019668579 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:42:14.294335
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.203173875808716 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/25/image_17082025_19_25_54_10229.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_25_34_8974.jpg', 2), ('/mnt/data/17082025/19/24/image_17082025_19_24_54_10264.jpg', 2), ('/mnt/data/17082025/19/24/image_17082025_19_24_35_10228.jpg', 2), ('/mnt/data/17082025/19/24/image_17082025_19_24_14_10218.jpg', 2), ('/mnt/data/17082025/19/23/image_17082025_19_23_55_10191.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/25/image_17082025_19_25_54_10229.jpg', '/mnt/data/17082025/19/25/image_17082025_19_25_34_8974.jpg', '/mnt/data/17082025/19/24/image_17082025_19_24_54_10264.jpg', '/mnt/data/17082025/19/24/image_17082025_19_24_35_10228.jpg', '/mnt/data/17082025/19/24/image_17082025_19_24_14_10218.jpg', '/mnt/data/17082025/19/23/image_17082025_19_23_55_10191.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:42:50.186443
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 12.605061292648315 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:43:14.408001
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/25/image_17082025_19_25_54_10229.jpg', 2), ('/mnt/data/17082025/19/25/image_17082025_19_25_34_8974.jpg', 2), ('/mnt/data/17082025/19/24/image_17082025_19_24_54_10264.jpg', 2), ('/mnt/data/17082025/19/24/image_17082025_19_24_35_10228.jpg', 2), ('/mnt/data/17082025/19/24/image_17082025_19_24_14_10218.jpg', 2), ('/mnt/data/17082025/19/23/image_17082025_19_23_55_10191.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/25/image_17082025_19_25_54_10229.jpg', '/mnt/data/17082025/19/25/image_17082025_19_25_34_8974.jpg', '/mnt/data/17082025/19/24/image_17082025_19_24_54_10264.jpg', '/mnt/data/17082025/19/24/image_17082025_19_24_35_10228.jpg', '/mnt/data/17082025/19/24/image_17082025_19_24_14_10218.jpg', '/mnt/data/17082025/19/23/image_17082025_19_23_55_10191.jpg']
batch 1
begin to post requests
Result OK !
uploaded 6 photos
time to upload: 62.40728974342346 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:44:26.486150
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/23/image_17082025_19_23_45_10276.jpg', 2), ('/mnt/data/17082025/19/22/image_17082025_19_23_05_10227.jpg', 2), ('/mnt/data/17082025/19/21/image_17082025_19_22_05_10304.jpg', 2), ('/mnt/data/17082025/19/21/image_17082025_19_21_55_10250.jpg', 2), ('/mnt/data/17082025/19/21/image_17082025_19_21_44_10323.jpg', 2), ('/mnt/data/17082025/19/21/image_17082025_19_21_25_10107.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/23/image_17082025_19_23_45_10276.jpg', '/mnt/data/17082025/19/22/image_17082025_19_23_05_10227.jpg', '/mnt/data/17082025/19/21/image_17082025_19_22_05_10304.jpg', '/mnt/data/17082025/19/21/image_17082025_19_21_55_10250.jpg', '/mnt/data/17082025/19/21/image_17082025_19_21_44_10323.jpg', '/mnt/data/17082025/19/21/image_17082025_19_21_25_10107.jpg']
batch 1
begin to post requests
Result OK !
uploaded 6 photos
time to upload: 68.4915418624878 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:45:38.583836
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.222208261489868 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:46:14.810353
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.181718587875366 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/20/image_17082025_19_21_05_10215.jpg', 2), ('/mnt/data/17082025/19/20/image_17082025_19_20_15_10193.jpg', 2), ('/mnt/data/17082025/18/50/image_17082025_18_50_14_9007.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_14_10108.jpg', 2), ('/mnt/data/17082025/18/10/image_17082025_18_10_14_10040.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/20/image_17082025_19_21_05_10215.jpg', '/mnt/data/17082025/19/20/image_17082025_19_20_15_10193.jpg', '/mnt/data/17082025/18/50/image_17082025_18_50_14_9007.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_14_10108.jpg', '/mnt/data/17082025/18/10/image_17082025_18_10_14_10040.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:46:50.734321
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.215638875961304 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:47:25.864147
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/20/image_17082025_19_21_05_10215.jpg', 2), ('/mnt/data/17082025/19/20/image_17082025_19_20_15_10193.jpg', 2), ('/mnt/data/17082025/18/50/image_17082025_18_50_14_9007.jpg', 2), ('/mnt/data/17082025/18/20/image_17082025_18_20_14_10108.jpg', 2), ('/mnt/data/17082025/18/10/image_17082025_18_10_14_10040.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/20/image_17082025_19_21_05_10215.jpg', '/mnt/data/17082025/19/20/image_17082025_19_20_15_10193.jpg', '/mnt/data/17082025/18/50/image_17082025_18_50_14_9007.jpg', '/mnt/data/17082025/18/20/image_17082025_18_20_14_10108.jpg', '/mnt/data/17082025/18/10/image_17082025_18_10_14_10040.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_54_10176.jpg']
batch 1
begin to post requests
Result OK !
uploaded 6 photos
time to upload: 65.03563165664673 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:48:38.029017
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.220975875854492 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:49:14.303009
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.19573998451233 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2), ('/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', '/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:49:50.147015
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.471625328063965 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:50:26.326407
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.18021869659424 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2), ('/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', '/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 19:51:03.114311
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2), ('/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', '/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', '/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg
/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg
/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.196108102798462 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:51:38.418803
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.231152534484863 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:52:14.574252
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.179503679275513 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2), ('/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', '/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:52:50.548158
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 12.35540246963501 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:53:14.782820
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.214987993240356 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2), ('/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', '/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:53:50.757508
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.224435806274414 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:54:25.906391
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.194486379623413 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2), ('/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', '/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 19:55:02.674766
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2), ('/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', '/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', '/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg
/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg
/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.195406198501587 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:55:38.035292
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.304876804351807 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:56:14.247903
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.214951753616333 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2), ('/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', '/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:56:50.137493
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.23011088371277 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:57:26.282284
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20727825164795 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2), ('/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', '/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 19:59:02.569831
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/19/58/image_17082025_19_58_44_9914.jpg', 2), ('/mnt/data/17082025/19/30/image_17082025_19_30_14_10051.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/58/image_17082025_19_58_44_9914.jpg', '/mnt/data/17082025/19/30/image_17082025_19_30_14_10051.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/19/58/image_17082025_19_58_44_9914.jpg', '/mnt/data/17082025/19/30/image_17082025_19_30_14_10051.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/19/58/image_17082025_19_58_44_9914.jpg
/mnt/data/17082025/19/30/image_17082025_19_30_14_10051.jpg
/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg
/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 31.342947244644165 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 19:59:37.878721
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.21466565132141 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:00:14.041079
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
uploaded 0 photos
time to upload: 148.33628582954407 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/19/58/image_17082025_19_58_44_9914.jpg', 2), ('/mnt/data/17082025/19/30/image_17082025_19_30_14_10051.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/19/58/image_17082025_19_58_44_9914.jpg', '/mnt/data/17082025/19/30/image_17082025_19_30_14_10051.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Read timed out. (read timeout=120)
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:02:50.301890
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.216479301452637 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:03:26.487537
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.198328971862793 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/02/image_17082025_20_03_05_9966.jpg', 2), ('/mnt/data/17082025/19/58/image_17082025_19_58_44_9914.jpg', 2), ('/mnt/data/17082025/19/30/image_17082025_19_30_14_10051.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/02/image_17082025_20_03_05_9966.jpg', '/mnt/data/17082025/19/58/image_17082025_19_58_44_9914.jpg', '/mnt/data/17082025/19/30/image_17082025_19_30_14_10051.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 20:04:03.098639
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/20/02/image_17082025_20_03_05_9966.jpg', 2), ('/mnt/data/17082025/19/58/image_17082025_19_58_44_9914.jpg', 2), ('/mnt/data/17082025/19/30/image_17082025_19_30_14_10051.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/02/image_17082025_20_03_05_9966.jpg', '/mnt/data/17082025/19/58/image_17082025_19_58_44_9914.jpg', '/mnt/data/17082025/19/30/image_17082025_19_30_14_10051.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/20/02/image_17082025_20_03_05_9966.jpg', '/mnt/data/17082025/19/58/image_17082025_19_58_44_9914.jpg', '/mnt/data/17082025/19/30/image_17082025_19_30_14_10051.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/20/02/image_17082025_20_03_05_9966.jpg
/mnt/data/17082025/19/58/image_17082025_19_58_44_9914.jpg
/mnt/data/17082025/19/30/image_17082025_19_30_14_10051.jpg
/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg
/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.21257781982422 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:04:38.611735
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.451483011245728 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:05:14.900544
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.4641375541687 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/02/image_17082025_20_03_05_9966.jpg', 2), ('/mnt/data/17082025/19/58/image_17082025_19_58_44_9914.jpg', 2), ('/mnt/data/17082025/19/30/image_17082025_19_30_14_10051.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/02/image_17082025_20_03_05_9966.jpg', '/mnt/data/17082025/19/58/image_17082025_19_58_44_9914.jpg', '/mnt/data/17082025/19/30/image_17082025_19_30_14_10051.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:05:50.779335
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.202900409698486 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:06:25.905998
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.187960863113403 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/02/image_17082025_20_03_05_9966.jpg', 2), ('/mnt/data/17082025/19/58/image_17082025_19_58_44_9914.jpg', 2), ('/mnt/data/17082025/19/30/image_17082025_19_30_14_10051.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/02/image_17082025_20_03_05_9966.jpg', '/mnt/data/17082025/19/58/image_17082025_19_58_44_9914.jpg', '/mnt/data/17082025/19/30/image_17082025_19_30_14_10051.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 20:07:02.718986
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/20/02/image_17082025_20_03_05_9966.jpg', 2), ('/mnt/data/17082025/19/58/image_17082025_19_58_44_9914.jpg', 2), ('/mnt/data/17082025/19/30/image_17082025_19_30_14_10051.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', 2), ('/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/02/image_17082025_20_03_05_9966.jpg', '/mnt/data/17082025/19/58/image_17082025_19_58_44_9914.jpg', '/mnt/data/17082025/19/30/image_17082025_19_30_14_10051.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/20/02/image_17082025_20_03_05_9966.jpg', '/mnt/data/17082025/19/58/image_17082025_19_58_44_9914.jpg', '/mnt/data/17082025/19/30/image_17082025_19_30_14_10051.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg', '/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/20/02/image_17082025_20_03_05_9966.jpg
/mnt/data/17082025/19/58/image_17082025_19_58_44_9914.jpg
/mnt/data/17082025/19/30/image_17082025_19_30_14_10051.jpg
/mnt/data/17082025/18/09/image_17082025_18_09_35_10968.jpg
/mnt/data/17082025/18/09/image_17082025_18_09_15_10209.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_54_10295.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1377689025","1377689027","1377689029","1377689026","1377689031","1377689034"],"photo_ids_order":["1377689025","1377689026","1377689027","1377689029","1377689031","1377689034"],"photo_detail":[{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/d98526a9a6b403ccd66680caf758d3c4.jpg","text":"TemporaryFile(/tmp/multipartBody8412696738367151358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755454100723,"filename":"image_17082025_20_03_05_9966.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/0cbfd7fea8ab8cc6e0f7e65cacf039f2.jpg","text":"TemporaryFile(/tmp/multipartBody5369166024986465807asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755454100723,"filename":"image_17082025_19_30_14_10051.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/1fed6f231064d65b9aae6058d160db82.jpg","text":"TemporaryFile(/tmp/multipartBody8242579447848721340asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755454100723,"filename":"image_17082025_18_09_35_10968.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/cf69ccf9365f1570017d9ce26b42b1fc.jpg","text":"TemporaryFile(/tmp/multipartBody2871918613742431542asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755454100723,"filename":"image_17082025_19_58_44_9914.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/5af80714362c983ee051fca3b6d26ea0.jpg","text":"TemporaryFile(/tmp/multipartBody4347929457296062352asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755454100723,"filename":"image_17082025_18_09_15_10209.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/89b6dbc4ce5e61118003bd0d15cf949b.jpg","text":"TemporaryFile(/tmp/multipartBody6681683173936788608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755454100723,"filename":"image_17082025_18_08_54_10295.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377689027","file1":"1377689026","file0":"1377689025","file4":"1377689031","file5":"1377689034","file3":"1377689029"},"map_files_photo_id_array":[{"photo_id":"1377689034","filename":"file5"},{"photo_id":"1377689027","filename":"file2"},{"photo_id":"1377689031","filename":"file4"},{"photo_id":"1377689026","filename":"file1"},{"photo_id":"1377689025","filename":"file0"},{"photo_id":"1377689029","filename":"file3"}],"portfolio_id":26044711,"hashtag_by_photo_ids":[{"1377689025":["hashtag1","hashtag2"]},{"1377689027":["hashtag1","hashtag2"]},{"1377689029":["hashtag1","hashtag2"]},{"1377689026":["hashtag1","hashtag2"]},{"1377689031":["hashtag1","hashtag2"]},{"1377689034":["hashtag1","hashtag2"]}],"comms":"Portfolio 26044711 used, photo_id : ArrayBuffer(1377689025, 1377689027, 1377689029, 1377689026, 1377689031, 1377689034)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 57.75627827644348 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 20:08:02.574522
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2), ('/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', 2), ('/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', '/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', '/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', '/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg', '/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', '/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', '/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', '/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg', '/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg
/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg
/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg
/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg
/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 31.719523668289185 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:08:38.228696
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.22712731361389 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:09:14.426121
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.19189143180847 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2), ('/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', 2), ('/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', '/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', '/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', '/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg', '/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:09:50.348033
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.232452154159546 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:10:26.477214
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.184386253356934 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2), ('/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', 2), ('/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', '/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', '/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', '/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg', '/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 20:11:03.175309
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2), ('/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', 2), ('/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', '/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', '/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', '/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg', '/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', '/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', '/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', '/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg', '/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg
/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg
/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg
/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg
/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.207823991775513 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:11:38.612239
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.236841917037964 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:12:14.809490
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.203773260116577 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/12/image_17082025_20_12_15_10007.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2), ('/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', 2), ('/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/12/image_17082025_20_12_15_10007.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', '/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', '/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', '/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:12:50.719926
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.22633957862854 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:13:25.863388
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.181180715560913 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/12/image_17082025_20_12_15_10007.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2), ('/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', 2), ('/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/12/image_17082025_20_12_15_10007.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', '/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', '/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', '/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 20:14:02.479253
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/20/12/image_17082025_20_12_15_10007.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', 2), ('/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', 2), ('/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', 2), ('/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/12/image_17082025_20_12_15_10007.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', '/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', '/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', '/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/20/12/image_17082025_20_12_15_10007.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg', '/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg', '/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg', '/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg', '/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/20/12/image_17082025_20_12_15_10007.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_44_9009.jpg
/mnt/data/17082025/18/08/image_17082025_18_08_35_10227.jpg
/mnt/data/17082025/18/06/image_17082025_18_06_34_10189.jpg
/mnt/data/17082025/17/51/image_17082025_17_51_15_10189.jpg
/mnt/data/17082025/17/50/image_17082025_17_51_04_10309.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
begin to post requests
after request
<Response [200]>
b'{"photo_ids":["1377689202","1377689204","1377689201","1377689209","1377689200","1377689206"],"photo_ids_order":["1377689200","1377689201","1377689202","1377689204","1377689206","1377689209"],"photo_detail":[{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/06d3f3e2c543160e068d378f841c07df.jpg","text":"TemporaryFile(/tmp/multipartBody8754882342135794933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755454521834,"filename":"image_17082025_18_08_35_10227.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/5282d26d37b91ba61fdbc0b4ca2714d4.jpg","text":"TemporaryFile(/tmp/multipartBody7620618859046028412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755454521834,"filename":"image_17082025_18_06_34_10189.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/e9d3531e887734914528041df4850ae8.jpg","text":"TemporaryFile(/tmp/multipartBody2813815173461454141asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755454521834,"filename":"image_17082025_18_08_44_9009.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/e86a6e8163105d083eb22e4a0884d6fa.jpg","text":"TemporaryFile(/tmp/multipartBody3155372370406130945asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755454521834,"filename":"image_17082025_17_51_04_10309.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/28e98bf2e2a069b270bc94e46159e3c9.jpg","text":"TemporaryFile(/tmp/multipartBody6317211883655866250asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755454521834,"filename":"image_17082025_20_12_15_10007.jpg","height":0,"width":0},{"mtr_user_id":979,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/17/d1678c921b5ce12baa653e9c4d4dcae8.jpg","text":"TemporaryFile(/tmp/multipartBody6783020852648754944asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755454521834,"filename":"image_17082025_17_51_15_10189.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377689202","file1":"1377689201","file0":"1377689200","file4":"1377689206","file5":"1377689209","file3":"1377689204"},"map_files_photo_id_array":[{"photo_id":"1377689209","filename":"file5"},{"photo_id":"1377689202","filename":"file2"},{"photo_id":"1377689206","filename":"file4"},{"photo_id":"1377689201","filename":"file1"},{"photo_id":"1377689200","filename":"file0"},{"photo_id":"1377689204","filename":"file3"}],"portfolio_id":26044711,"hashtag_by_photo_ids":[{"1377689202":["hashtag1","hashtag2"]},{"1377689204":["hashtag1","hashtag2"]},{"1377689201":["hashtag1","hashtag2"]},{"1377689209":["hashtag1","hashtag2"]},{"1377689200":["hashtag1","hashtag2"]},{"1377689206":["hashtag1","hashtag2"]}],"comms":"Portfolio 26044711 used, photo_id : ArrayBuffer(1377689202, 1377689204, 1377689201, 1377689209, 1377689200, 1377689206)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 58.34979772567749 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 20:15:02.673933
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', 2), ('/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg', 2), ('/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', '/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', '/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg', '/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', '/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', '/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', '/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg', '/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', '/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg
/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg
/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg
/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg
/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg
/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.19087839126587 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:15:38.214298
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.232510328292847 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:16:14.291078
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.218953371047974 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', 2), ('/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg', 2), ('/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', '/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', '/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg', '/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', '/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:16:50.273899
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.205116510391235 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:17:26.433182
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.179211616516113 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', 2), ('/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg', 2), ('/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', '/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', '/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg', '/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', '/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 20:18:03.102089
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', 2), ('/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg', 2), ('/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', '/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', '/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg', '/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', '/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', '/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', '/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg', '/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', '/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg
/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg
/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg
/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg
/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg
/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.223686456680298 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:18:38.545855
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.156197547912598 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Read timed out. (read timeout=30)
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:19:14.868463
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', 2), ('/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', 2), ('/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg', 2), ('/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', 2), ('/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', 2), ('/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/17/50/image_17082025_17_50_34_8996.jpg', '/mnt/data/17082025/17/50/image_17082025_17_50_15_10136.jpg', '/mnt/data/17082025/17/40/image_17082025_17_40_15_10093.jpg', '/mnt/data/17082025/17/36/image_17082025_17_36_55_10245.jpg', '/mnt/data/17082025/12/28/image_17082025_12_28_54_8991.jpg', '/mnt/data/17082025/12/22/image_17082025_12_23_04_10273.jpg']
batch 1
begin to post requests
Result OK !
uploaded 6 photos
time to upload: 60.35285043716431 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:20:25.943607
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', 2), ('/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', 2), ('/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', 2), ('/mnt/data/17082025/12/09/image_17082025_12_09_15_10222.jpg', 2), ('/mnt/data/17082025/12/01/image_17082025_12_01_24_10237.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_24_10227.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/12/19/image_17082025_12_19_45_10179.jpg', '/mnt/data/17082025/12/17/image_17082025_12_17_25_10163.jpg', '/mnt/data/17082025/12/10/image_17082025_12_10_34_10188.jpg', '/mnt/data/17082025/12/09/image_17082025_12_09_15_10222.jpg', '/mnt/data/17082025/12/01/image_17082025_12_01_24_10237.jpg', '/mnt/data/17082025/11/54/image_17082025_11_54_24_10227.jpg']
batch 1
begin to post requests
Result OK !
 val : 1 : upload photos already in processing! 
uploaded 6 photos
time to upload: 71.45656538009644 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:21:50.007531
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20334267616272 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:22:28.050820
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
uploaded 0 photos
time to upload: 146.2275094985962 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', 2), ('/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', 2), ('/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', 2), ('/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg', 2), ('/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg', '/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', '/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', '/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', '/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg', '/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Read timed out. (read timeout=120)
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 20:25:02.713516
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', 2), ('/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', 2), ('/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', 2), ('/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg', 2), ('/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg', '/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', '/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', '/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', '/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg', '/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg', '/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', '/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', '/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', '/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg', '/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg
/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg
/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg
/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg
/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg
/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 31.6321964263916 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:25:38.084394
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20942711830139 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:26:14.334355
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.19138503074646 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', 2), ('/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', 2), ('/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', 2), ('/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg', 2), ('/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg', '/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', '/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', '/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', '/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg', '/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:26:50.258185
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.211944341659546 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:27:26.385819
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.192201137542725 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', 2), ('/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', 2), ('/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', 2), ('/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg', 2), ('/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg', '/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', '/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', '/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', '/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg', '/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 20:28:02.959145
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', 2), ('/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', 2), ('/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', 2), ('/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg', 2), ('/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg', '/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', '/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', '/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', '/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg', '/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg', '/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', '/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', '/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', '/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg', '/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg
/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg
/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg
/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg
/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg
/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg
uploaded 0 photos
time to upload: 32.0267698764801 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 20:29:03.039008
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg', 2), ('/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', 2), ('/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', 2), ('/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', 2), ('/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg', 2), ('/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg', '/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', '/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', '/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', '/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg', '/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg', '/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg', '/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg', '/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg', '/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg', '/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg
/mnt/data/17082025/11/54/image_17082025_11_54_14_10215.jpg
/mnt/data/17082025/11/52/image_17082025_11_52_14_9045.jpg
/mnt/data/17082025/11/42/image_17082025_11_43_05_10242.jpg
/mnt/data/17082025/11/40/image_17082025_11_40_15_10166.jpg
/mnt/data/17082025/11/33/image_17082025_11_33_54_10176.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 34.554362535476685 secondes ---
after data_to_send, before sending request
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:29:38.594701
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos 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! 
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', 2), ('/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', 2), ('/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/11/image_17082025_00_11_55_10266.jpg', '/mnt/data/17082025/00/11/image_17082025_00_12_05_10227.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_25_10326.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_35_10266.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_45_10206.jpg', '/mnt/data/17082025/00/12/image_17082025_00_12_55_10209.jpg']
batch 1
begin to post requests
Result OK !
uploaded 6 photos
time to upload: 68.38940715789795 secondes ---
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:30:50.756532
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.317044019699097 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
('Connection aborted.', timeout('The write operation timed out',))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:31:26.032242
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.096909523010254 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/30/image_17082025_20_30_54_10281.jpg', 2), ('/mnt/data/17082025/20/30/image_17082025_20_30_34_10164.jpg', 2), ('/mnt/data/17082025/20/30/image_17082025_20_30_24_9006.jpg', 2), ('/mnt/data/17082025/20/30/image_17082025_20_30_15_9993.jpg', 2), ('/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg', 2), ('/mnt/data/17082025/19/58/image_17082025_19_58_54_9914.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/30/image_17082025_20_30_54_10281.jpg', '/mnt/data/17082025/20/30/image_17082025_20_30_34_10164.jpg', '/mnt/data/17082025/20/30/image_17082025_20_30_24_9006.jpg', '/mnt/data/17082025/20/30/image_17082025_20_30_15_9993.jpg', '/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg', '/mnt/data/17082025/19/58/image_17082025_19_58_54_9914.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f88549eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 20:32:02.595756
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/20/30/image_17082025_20_30_54_10281.jpg', 2), ('/mnt/data/17082025/20/30/image_17082025_20_30_34_10164.jpg', 2), ('/mnt/data/17082025/20/30/image_17082025_20_30_24_9006.jpg', 2), ('/mnt/data/17082025/20/30/image_17082025_20_30_15_9993.jpg', 2), ('/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg', 2), ('/mnt/data/17082025/19/58/image_17082025_19_58_54_9914.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/30/image_17082025_20_30_54_10281.jpg', '/mnt/data/17082025/20/30/image_17082025_20_30_34_10164.jpg', '/mnt/data/17082025/20/30/image_17082025_20_30_24_9006.jpg', '/mnt/data/17082025/20/30/image_17082025_20_30_15_9993.jpg', '/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg', '/mnt/data/17082025/19/58/image_17082025_19_58_54_9914.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/20/30/image_17082025_20_30_54_10281.jpg', '/mnt/data/17082025/20/30/image_17082025_20_30_34_10164.jpg', '/mnt/data/17082025/20/30/image_17082025_20_30_24_9006.jpg', '/mnt/data/17082025/20/30/image_17082025_20_30_15_9993.jpg', '/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg', '/mnt/data/17082025/19/58/image_17082025_19_58_54_9914.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/20/30/image_17082025_20_30_54_10281.jpg
/mnt/data/17082025/20/30/image_17082025_20_30_34_10164.jpg
/mnt/data/17082025/20/30/image_17082025_20_30_24_9006.jpg
/mnt/data/17082025/20/30/image_17082025_20_30_15_9993.jpg
/mnt/data/17082025/20/21/image_17082025_20_21_24_9937.jpg
/mnt/data/17082025/19/58/image_17082025_19_58_54_9914.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 33.822028160095215 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f853c8da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:32:38.157716
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.124471187591553 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f832a7da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:33:14.357580
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.097452402114868 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/33/image_17082025_20_33_24_10234.jpg', 2), ('/mnt/data/17082025/20/33/image_17082025_20_33_14_9965.jpg', 2), ('/mnt/data/17082025/20/32/image_17082025_20_33_04_10187.jpg', 2), ('/mnt/data/17082025/20/32/image_17082025_20_32_54_8968.jpg', 2), ('/mnt/data/17082025/20/32/image_17082025_20_32_27_10252.jpg', 2), ('/mnt/data/17082025/20/32/image_17082025_20_32_14_10228.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/33/image_17082025_20_33_24_10234.jpg', '/mnt/data/17082025/20/33/image_17082025_20_33_14_9965.jpg', '/mnt/data/17082025/20/32/image_17082025_20_33_04_10187.jpg', '/mnt/data/17082025/20/32/image_17082025_20_32_54_8968.jpg', '/mnt/data/17082025/20/32/image_17082025_20_32_27_10252.jpg', '/mnt/data/17082025/20/32/image_17082025_20_32_14_10228.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f899f0eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:33:50.284308
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.121514797210693 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9e1f5c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:34:26.414502
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.084166288375854 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_35_10190.jpg', 2), ('/mnt/data/17082025/20/33/image_17082025_20_33_54_8992.jpg', 2), ('/mnt/data/17082025/20/33/image_17082025_20_33_24_10234.jpg', 2), ('/mnt/data/17082025/20/33/image_17082025_20_33_14_9965.jpg', 2), ('/mnt/data/17082025/20/32/image_17082025_20_33_04_10187.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_35_10190.jpg', '/mnt/data/17082025/20/33/image_17082025_20_33_54_8992.jpg', '/mnt/data/17082025/20/33/image_17082025_20_33_24_10234.jpg', '/mnt/data/17082025/20/33/image_17082025_20_33_14_9965.jpg', '/mnt/data/17082025/20/32/image_17082025_20_33_04_10187.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa89a8da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 20:35:03.213681
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_35_10190.jpg', 2), ('/mnt/data/17082025/20/33/image_17082025_20_33_54_8992.jpg', 2), ('/mnt/data/17082025/20/33/image_17082025_20_33_24_10234.jpg', 2), ('/mnt/data/17082025/20/33/image_17082025_20_33_14_9965.jpg', 2), ('/mnt/data/17082025/20/32/image_17082025_20_33_04_10187.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_35_10190.jpg', '/mnt/data/17082025/20/33/image_17082025_20_33_54_8992.jpg', '/mnt/data/17082025/20/33/image_17082025_20_33_24_10234.jpg', '/mnt/data/17082025/20/33/image_17082025_20_33_14_9965.jpg', '/mnt/data/17082025/20/32/image_17082025_20_33_04_10187.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_35_10190.jpg', '/mnt/data/17082025/20/33/image_17082025_20_33_54_8992.jpg', '/mnt/data/17082025/20/33/image_17082025_20_33_24_10234.jpg', '/mnt/data/17082025/20/33/image_17082025_20_33_14_9965.jpg', '/mnt/data/17082025/20/32/image_17082025_20_33_04_10187.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg
/mnt/data/17082025/20/34/image_17082025_20_34_35_10190.jpg
/mnt/data/17082025/20/33/image_17082025_20_33_54_8992.jpg
/mnt/data/17082025/20/33/image_17082025_20_33_24_10234.jpg
/mnt/data/17082025/20/33/image_17082025_20_33_14_9965.jpg
/mnt/data/17082025/20/32/image_17082025_20_33_04_10187.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.101966857910156 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb3a86da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:35:38.565093
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11219573020935 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8de8cc88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:36:14.804878
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.104913473129272 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_35_10190.jpg', 2), ('/mnt/data/17082025/20/33/image_17082025_20_33_54_8992.jpg', 2), ('/mnt/data/17082025/20/33/image_17082025_20_33_24_10234.jpg', 2), ('/mnt/data/17082025/20/33/image_17082025_20_33_14_9965.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_35_10190.jpg', '/mnt/data/17082025/20/33/image_17082025_20_33_54_8992.jpg', '/mnt/data/17082025/20/33/image_17082025_20_33_24_10234.jpg', '/mnt/data/17082025/20/33/image_17082025_20_33_14_9965.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f837abeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:36:50.658969
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.090938568115234 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7bed0c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:37:25.778607
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.06743812561035 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_35_10190.jpg', 2), ('/mnt/data/17082025/20/33/image_17082025_20_33_54_8992.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_35_10190.jpg', '/mnt/data/17082025/20/33/image_17082025_20_33_54_8992.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa13dceb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 20:38:02.309729
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_35_10190.jpg', 2), ('/mnt/data/17082025/20/33/image_17082025_20_33_54_8992.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_35_10190.jpg', '/mnt/data/17082025/20/33/image_17082025_20_33_54_8992.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_35_10190.jpg', '/mnt/data/17082025/20/33/image_17082025_20_33_54_8992.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg
/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg
/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg
/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg
/mnt/data/17082025/20/34/image_17082025_20_34_35_10190.jpg
/mnt/data/17082025/20/33/image_17082025_20_33_54_8992.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.076093435287476 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f83bb3da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:38:37.947847
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.122148275375366 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa9088da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:39:14.261991
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.101364612579346 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_35_10190.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_35_10190.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f99fdeeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:39:50.093148
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.114279747009277 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f87f5cc88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:40:26.232808
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.098541736602783 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa86eeeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 20:41:02.951783
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg
/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg
/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg
/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.109153032302856 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f94579da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:41:38.360313
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.120428800582886 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9c70ada0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:42:14.541176
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.09666132926941 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f918aeeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:42:50.438002
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.116365671157837 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9ffebc88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:43:26.603103
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.102221965789795 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9c724eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 20:44:03.238338
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg
/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg
/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg
/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.103493213653564 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9518cda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:44:38.772598
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.124509572982788 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7a8a8da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:45:14.083501
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10769295692444 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f80e52da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:45:49.953830
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.120188236236572 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8779dc88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:46:26.115396
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.091676712036133 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f91370da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 20:47:02.616958
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg
/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg
/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg
/mnt/data/17082025/20/34/image_17082025_20_34_44_8943.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.092912673950195 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb1dc0da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:47:38.247025
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.119547843933105 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9c1cbda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:48:14.377572
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.09586262702942 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb165ada0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:48:50.390744
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.107873916625977 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f96536c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:49:26.578172
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.09525156021118 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f85429eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 20:50:03.123020
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg
/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg
/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg
/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.1026713848114 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8381dda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:50:38.678414
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.105055332183838 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7dde3da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:51:13.929017
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.09296464920044 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f896f7eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:51:49.814801
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.16929292678833 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f95f94be0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:52:25.943651
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.082635641098022 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fae75deb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 20:53:02.726240
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg
/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg
/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg
/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.106654405593872 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f822e1da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:53:38.096016
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.110683917999268 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb2beada0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:54:14.283117
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.102792263031006 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9638beb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:54:50.209586
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11991548538208 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f92193c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:55:26.411787
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.095478534698486 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa7656eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 20:56:02.832128
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg
/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg
/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg
/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.081714391708374 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f896feda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:56:38.523496
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.118485927581787 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f784b2da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:57:14.759032
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10293698310852 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8438aeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:57:50.593254
in upload_from_sqlite, uploading in 26044711
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 20:59:02.925373
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg
/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg
/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg
/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.100623846054077 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8189bda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 20:59:38.193652
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.119964838027954 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f99eeada0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:00:14.373282
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.095190286636353 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fab436eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:00:50.339297
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.12209153175354 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8b9b5be0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:01:26.479428
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.095325708389282 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f83fceeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 21:02:02.986081
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg
/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg
/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg
/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.104958534240723 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9a69fda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:02:38.602788
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.119173288345337 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9c684da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:03:14.864117
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.093808889389038 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f96524eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:03:50.779685
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.094228982925415 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9f24cc88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:04:25.914174
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.091822862625122 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7faa357eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 21:05:02.641488
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg
/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg
/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg
/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 32.039193630218506 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8c29dda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:05:38.136291
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.117687702178955 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f87cb9da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:06:14.265686
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.094998121261597 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa6f0feb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:06:50.206862
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.13012981414795 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa80f6c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:07:26.355234
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.095037698745728 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9f0c1eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 21:08:02.895208
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg
/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg
/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg
/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10585355758667 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8c9a9da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:08:38.494340
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11961603164673 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f79556da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:09:14.846593
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10322666168213 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7d793eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:09:50.669033
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.29516100883484 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8fd9ac88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:10:26.871710
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.07409954071045 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f801eff28>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 21:11:02.500139
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', '/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg
/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg
/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg
/mnt/data/17082025/20/34/image_17082025_20_34_54_10218.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.63421940803528 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f839e8da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:11:37.899601
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.121183395385742 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9a470da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:12:14.106511
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.09898066520691 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f90b3aeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:12:50.039735
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.118143558502197 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fae465c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:13:26.203473
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.093759059906006 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb55d9eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 21:14:02.881945
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg
/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg
/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg
/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.102250337600708 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f76835da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:14:38.360936
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.194632053375244 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8d1cada0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:15:14.624240
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.088333129882812 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f87600eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:15:50.503645
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.125513553619385 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f87a38c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:16:26.647327
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.095242738723755 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9ad8feb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 21:17:03.446015
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2), ('/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', '/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg
/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg
/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg
/mnt/data/17082025/20/34/image_17082025_20_35_04_10405.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.110379457473755 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f87aa2da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:17:38.807397
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.119900465011597 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f82524c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:18:13.959259
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.09226703643799 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f98d4eeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:18:49.899739
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.122302293777466 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f96b9dc88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:19:26.047893
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.09438943862915 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7f745eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 21:20:02.562314
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg
/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg
/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg
/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_34_10231.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.101456880569458 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8b231da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:20:38.148912
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.20855712890625 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb2767c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:21:14.388823
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.098506689071655 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', 2), ('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9f817eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:21:50.286780
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.1198890209198 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f81602c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:22:26.444713
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.069196462631226 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', 2), ('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8ed0eeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 21:23:02.900382
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', 2), ('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg
/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg
/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg
/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg
/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.103885889053345 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa84a5da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:23:38.576402
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.117496967315674 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f978afda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:24:14.774347
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.093322038650513 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', 2), ('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f973abeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:24:50.791211
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.162134885787964 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7829cc88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:25:25.949852
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.092435359954834 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', 2), ('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7c12deb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 21:26:02.411935
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', 2), ('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg
/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg
/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg
/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg
/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.097495794296265 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f774f0da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:26:38.081654
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.120287656784058 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f81639da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:27:14.313757
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.072227001190186 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', 2), ('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9ded2eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:27:50.246739
in upload_from_sqlite, uploading in 26044711
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 21:28:02.823442
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', 2), ('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg
/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg
/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg
/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg
/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.101101398468018 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7962bda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 21:29:03.246924
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', 2), ('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg
/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg
/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg
/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg
/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.102927207946777 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8fe5ada0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:29:38.611103
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11894965171814 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa7afcda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:30:14.827136
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.090723514556885 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', 2), ('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8224aeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:30:50.783656
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.102891445159912 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8ffddc88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:31:25.943262
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.091084957122803 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', 2), ('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fab73ceb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 21:32:02.455218
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', 2), ('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg
/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg
/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg
/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg
/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.09778332710266 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa2fceda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:32:38.083354
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11862277984619 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fabfd9c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:33:14.330898
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.0996150970459 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', 2), ('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9a188eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:33:50.229001
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.125159740447998 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fadfccbe0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:34:26.397552
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.08856987953186 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', 2), ('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f91b9aeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 21:35:03.187935
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', 2), ('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg
/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg
/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg
/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg
/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.078038215637207 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9c311da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:35:38.556981
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.122554302215576 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb4d34da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:36:14.761162
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.127645015716553 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', 2), ('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa664aeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:36:50.663423
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.106483697891235 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fade6dc88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:37:26.784186
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.093518495559692 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', 2), ('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb1027eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 21:38:02.756510
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', 2), ('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg
/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg
/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg
/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg
/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg
/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 32.423354148864746 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f82bb6c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:38:38.350418
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.115636110305786 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7ebe0da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:39:14.609003
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.099998712539673 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', 2), ('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2), ('/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', 2), ('/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', 2), ('/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', '/mnt/data/17082025/20/40/image_17082025_20_40_14_10073.jpg', '/mnt/data/17082025/20/39/image_17082025_20_39_45_10221.jpg', '/mnt/data/17082025/20/37/image_17082025_20_37_55_10190.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f98149eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:39:50.524979
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.125254154205322 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7facb1dc88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:40:26.693024
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.09728503227234 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/40/image_17082025_21_40_35_10208.jpg', 2), ('/mnt/data/17082025/21/40/image_17082025_21_40_14_10094.jpg', 2), ('/mnt/data/17082025/21/20/image_17082025_21_20_25_9911.jpg', 2), ('/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', 2), ('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/40/image_17082025_21_40_35_10208.jpg', '/mnt/data/17082025/21/40/image_17082025_21_40_14_10094.jpg', '/mnt/data/17082025/21/20/image_17082025_21_20_25_9911.jpg', '/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f917e5eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 21:41:02.180864
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/40/image_17082025_21_40_35_10208.jpg', 2), ('/mnt/data/17082025/21/40/image_17082025_21_40_14_10094.jpg', 2), ('/mnt/data/17082025/21/20/image_17082025_21_20_25_9911.jpg', 2), ('/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', 2), ('/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', 2), ('/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/40/image_17082025_21_40_35_10208.jpg', '/mnt/data/17082025/21/40/image_17082025_21_40_14_10094.jpg', '/mnt/data/17082025/21/20/image_17082025_21_20_25_9911.jpg', '/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/40/image_17082025_21_40_35_10208.jpg', '/mnt/data/17082025/21/40/image_17082025_21_40_14_10094.jpg', '/mnt/data/17082025/21/20/image_17082025_21_20_25_9911.jpg', '/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg', '/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg', '/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/40/image_17082025_21_40_35_10208.jpg
/mnt/data/17082025/21/40/image_17082025_21_40_14_10094.jpg
/mnt/data/17082025/21/20/image_17082025_21_20_25_9911.jpg
/mnt/data/17082025/21/18/image_17082025_21_18_44_9968.jpg
/mnt/data/17082025/21/12/image_17082025_21_12_35_9945.jpg
/mnt/data/17082025/20/48/image_17082025_20_48_54_9942.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 32.13849639892578 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7bf1bda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:41:37.817075
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.116974353790283 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9cf69c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:42:14.017238
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.108121156692505 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_45_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_35_10198.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_45_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_35_10198.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f794ddeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:42:49.931519
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.13066291809082 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f76a95c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:43:26.131355
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.086971759796143 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7facd3eeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 21:44:02.859057
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.08708667755127 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9bd4bda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:44:38.358641
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11933946609497 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7cd36da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:45:14.526929
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.09514284133911 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f773a6da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:45:50.509565
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.176769256591797 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8cf67c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:46:26.689816
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.108155250549316 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa647deb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 21:47:02.421130
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.113349199295044 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f88c63da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:47:37.886503
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.316447973251343 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa0180da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:48:14.058154
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10840344429016 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f92fb2eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:48:50.063941
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.133336305618286 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9f390c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:49:26.259891
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10650396347046 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8f12beb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 21:50:02.735578
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.118072509765625 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7faa767c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:50:38.430854
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.119254112243652 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f997ffda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:51:14.610394
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10798192024231 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f97549eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:51:50.611377
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.130967378616333 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9bcfebe0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:52:26.779141
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.107407569885254 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f82408da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 21:53:02.480246
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.121136903762817 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8f788da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:53:37.997766
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.122621536254883 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f988e6c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:54:14.183202
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.107184410095215 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f90dbfda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:54:50.170412
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11528706550598 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f98a9cc88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:55:26.356096
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.110440015792847 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7faf59cda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 21:56:02.921713
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.16010308265686 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa7f14c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:56:38.559319
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.122382402420044 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8b8edc88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:57:14.783122
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.107381105422974 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7af92eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:57:50.788349
in upload_from_sqlite, uploading in 26044711
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 21:59:02.865153
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.116891384124756 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7faa148da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 21:59:38.258428
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.119290590286255 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8dda2da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:00:14.487518
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10685682296753 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f910ccda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:00:50.432742
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.13070774078369 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb1723c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:01:26.677115
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.106014490127563 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f81713eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 22:02:03.211890
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.094676733016968 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7811cda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:02:38.797264
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.116742610931396 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7ef67da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:03:14.014208
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.07994031906128 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9ec89f28>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:03:49.992208
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.129992485046387 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7fca3c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:04:26.189590
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.08568286895752 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8706feb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 22:05:03.007684
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11102032661438 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f86b18c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:05:38.347416
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.106586933135986 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7b831da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:06:14.589201
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.108769416809082 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f94279da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:06:50.599438
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.13072180747986 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb4641c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:07:26.786733
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10751461982727 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa19d4eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 22:08:02.385682
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.09654140472412 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa9c9bc88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:08:37.982565
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11940050125122 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa4d40da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:09:14.166126
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.108075380325317 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f76788eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:09:50.181305
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.129403829574585 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f96c53c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:10:26.357595
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10820198059082 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8ee5beb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 22:11:03.018018
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.115601062774658 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9bc21da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:11:38.526016
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.092028617858887 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb02afda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:12:14.826930
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.107624053955078 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb622beb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:12:50.802037
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.128904819488525 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7c9ccb70>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:13:25.989246
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.09003973007202 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9ec16eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 22:14:02.590954
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11523127555847 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8fcf3da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:14:38.156315
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.109713554382324 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa285eda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:15:14.373411
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10911989212036 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f86734da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:15:50.354062
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.129005670547485 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa6d24c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:16:26.551652
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.106847286224365 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f93a96eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 22:17:03.397633
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.088082313537598 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f805d6da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:17:38.742470
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.091590404510498 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f77486da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:18:14.000425
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.110337734222412 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f82622eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:18:49.937958
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.128264904022217 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9fb98c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:19:26.116967
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.084439039230347 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb2088da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 22:20:02.707671
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.111366987228394 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa1e2fda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:20:38.340240
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11946129798889 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7f622da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:21:14.557988
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10783886909485 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7faffaaeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:21:50.575961
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.13017511367798 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa9fe2be0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:22:26.753240
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10843777656555 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f823baeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 22:23:02.470299
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.74494171142578 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb0213da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:23:37.981481
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11259889602661 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9775ada0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:24:14.182708
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.107797861099243 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f93e95eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:24:50.178071
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.131930828094482 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f90558c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:25:26.365450
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10830545425415 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb25a6eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 22:26:02.931224
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11418128013611 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f88e8eda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:26:38.546504
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.119561672210693 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7c5b5da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:27:14.720100
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.107077836990356 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb1e1ada0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:27:50.807690
in upload_from_sqlite, uploading in 26044711
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 22:28:02.390488
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11966586112976 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8478ada0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 22:29:02.921605
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.120014667510986 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f778adda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:29:38.243215
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.118765354156494 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fad664da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:30:14.478062
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.108295917510986 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f79e21eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:30:50.467303
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.130863666534424 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7b24cc88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:31:26.683428
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10701298713684 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9cf49eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 22:32:02.355264
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.111388683319092 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f92eb4da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:32:37.944626
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.125194787979126 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f89b55da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:33:14.063828
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10700535774231 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8795feb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:33:50.066882
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.119073152542114 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f84e21c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:34:26.259898
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.146705150604248 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f76c6ceb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 22:35:03.072367
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.113978147506714 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8e354c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:35:38.495370
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.119521856307983 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb21adc88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:36:14.661874
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10822820663452 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7dc5aeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:36:50.706165
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.115721464157104 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8e692c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:37:25.877937
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.108146905899048 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9a331da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 22:38:02.536317
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 31.346201181411743 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8cc98da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:38:38.241569
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.132508039474487 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f99a91da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:39:14.524181
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.105666875839233 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7faefe4eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:39:50.417697
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.129263401031494 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb372fc88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:40:26.615602
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.106285095214844 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9c56aeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 22:41:03.344851
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 32.36090111732483 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f90ddcda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:41:38.918435
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.119593858718872 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9a37eda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:42:14.474184
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10844850540161 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f864f7eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:42:50.096892
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.141511917114258 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb1510c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:43:26.263403
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.107617378234863 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8dbe9eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 22:44:02.826662
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.104018449783325 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa5ecbda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:44:38.366461
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11947798728943 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9fab6da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:45:14.552469
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10625648498535 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f93903eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:45:50.555674
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.130711793899536 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f76dc0be0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:46:26.745279
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.108839988708496 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa6c38da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 22:47:02.375090
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 33.145315408706665 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f89359da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:47:37.944670
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11736011505127 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7fc72da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:48:14.130545
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.087673902511597 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa82dceb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:48:50.127565
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.130963563919067 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7faf485c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:49:26.333982
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.107977867126465 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f89686da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 22:50:02.858058
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10372805595398 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa4378da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:50:38.623650
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.106351137161255 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7f0d9da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:51:14.703371
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.106906414031982 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7f526eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:51:50.712565
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.13011860847473 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f80086be0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:52:25.893263
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10833215713501 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8aa13eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 22:53:02.702682
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.111693859100342 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7f383da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:53:38.086549
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.119462490081787 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa34abda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:54:14.294529
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.107911825180054 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7a38deb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:54:50.296695
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.130154132843018 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa0ccabe0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:55:26.508093
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.1068274974823 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f80d96eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 22:56:03.005136
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11680579185486 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fad9dada0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:56:38.670751
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.119508743286133 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa310cda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:57:13.884625
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.109384775161743 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9ab61eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:57:49.812927
in upload_from_sqlite, uploading in 26044711
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 22:59:03.023606
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.13561224937439 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa6623da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 22:59:38.246734
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.15523672103882 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa4ec6c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:00:14.420318
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.08954095840454 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9dd37eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:00:50.402543
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.12745761871338 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f96e23c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:01:26.615531
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10759925842285 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f92747eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 23:02:03.117996
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11267399787903 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa74e6da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:02:38.781412
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.116605281829834 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb2641da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:03:13.950913
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.107311487197876 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa1269eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:03:49.955402
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.130672931671143 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9bf08c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:04:26.136695
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.081519842147827 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f97fc0eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 23:05:02.832149
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 32.162184715270996 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7a942da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:05:38.339571
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.12355089187622 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7dd81da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:06:14.550274
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.107717514038086 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb616ceb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:06:50.520930
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.132070302963257 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f94912c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:07:26.719270
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10351538658142 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7facd4eeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 23:08:02.337920
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11237931251526 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa432cda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:08:37.892892
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.119707107543945 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f96e8bda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:09:14.104479
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.142614364624023 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9406aeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:09:50.153349
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.132558345794678 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f84dabc88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:10:26.359851
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.107279300689697 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa01c8eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 23:11:03.061366
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11312747001648 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7faf28cda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:11:38.565450
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.12067723274231 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa828dda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:12:14.789259
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.108577728271484 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9f761eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:12:50.774468
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.13120722770691 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f90abcc88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:13:25.952568
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.110113859176636 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9d7b9eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 23:14:02.700534
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.112784147262573 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9d9a0da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:14:38.172153
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.094001293182373 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8f4bbda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:15:14.362106
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10006308555603 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8023eeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:15:50.355045
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.131004810333252 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7faa3cfc88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:16:26.546051
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.112301349639893 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7d707f28>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 23:17:03.310460
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.087698698043823 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7e464da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:17:38.748014
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.120067358016968 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8da3ada0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:18:13.984527
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10623598098755 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7a944eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:18:49.969537
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.104595184326172 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8bc9ac88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:19:26.156482
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10895347595215 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa0347da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 23:20:02.798976
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 31.531291246414185 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7cdd3da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:20:38.468228
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.117799282073975 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb18bada0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:21:14.628551
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.109017372131348 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fac642eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:21:50.727536
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.13057565689087 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f852b4be0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:22:25.908796
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.109184503555298 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9b185eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 23:23:02.673397
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.084779262542725 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f893cbda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:23:38.119889
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.119877099990845 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f883beda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:24:14.282063
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10916495323181 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7c836eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:24:50.248929
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.129950523376465 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb27d0c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:25:26.453966
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.111472368240356 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7d990eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 23:26:02.974232
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11617612838745 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb1a93c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:26:38.658375
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.119638442993164 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa9cd2da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:27:14.801267
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.112061262130737 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7d6eada0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:27:50.828014
in upload_from_sqlite, uploading in 26044711
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 23:28:02.276690
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
uploaded 0 photos
time to upload: 30.11017107963562 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f85595da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 23:29:03.156365
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.113436937332153 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9d36dda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:29:38.385805
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.162830591201782 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa2583c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:30:14.601958
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10803508758545 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa3a5aeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:30:50.634181
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.128714323043823 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8c8e7c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:31:26.892751
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.106501817703247 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7e668eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 23:32:02.307083
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.090739011764526 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7bd59da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:32:37.983148
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10686469078064 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9cf15da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:33:14.214295
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.108245611190796 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f94000eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:33:50.181156
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.13288450241089 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa8cddc88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:34:26.392370
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.106901168823242 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa624fda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 23:35:03.144755
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11325216293335 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa28c2da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:35:38.590163
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.119792222976685 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f946e9da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:36:14.776877
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11026692390442 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb3849eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:36:50.787205
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11049509048462 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9b6dbc88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:37:25.996394
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.106597661972046 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7faf7dbda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 23:38:02.487693
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.113728761672974 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7b032da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:38:38.225407
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.120692014694214 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8a876c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:39:14.458746
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11074733734131 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9dc13eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:39:50.442685
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.131474256515503 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7c92dbe0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:40:26.643955
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10679340362549 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8f569eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 23:41:03.304854
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.117828130722046 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7e035da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:41:38.809012
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.1169376373291 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7de52da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:42:14.035678
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.106974363327026 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f90693eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:42:50.031828
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.13049340248108 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fadb6ac88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:43:26.222648
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.107564210891724 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f98165eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 23:44:02.898050
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.116419792175293 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb205dda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:44:38.403520
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.09516453742981 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f988d0da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:45:14.587131
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.107054233551025 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f82d9dda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:45:50.589652
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.129568576812744 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7a748c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:46:26.783295
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.10716485977173 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7a5e4eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 23:47:02.458380
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.11581563949585 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f93774da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:47:37.968383
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.12006902694702 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fad930da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:48:14.156844
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.109123468399048 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f94579eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:48:50.181199
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.129623413085938 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa8dd3c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:49:26.367850
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.142632484436035 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9bb11da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 23:50:02.996297
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.114034414291382 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f94c01c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:50:38.671696
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.110411405563354 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f83d1eda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:51:14.863117
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.127174854278564 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fad87aeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:51:50.770972
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.130802392959595 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa4501be0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:52:25.939910
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.107324361801147 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa9c9feb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 23:53:02.641644
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.098093271255493 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7c5fdda0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:53:38.146603
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.120989322662354 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa7677da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:54:14.322468
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.108050107955933 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f83e62eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:54:50.311883
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.130632400512695 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f7ce24c88>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 15 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:55:26.507012
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.107325553894043 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f816dbeb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -u www.fotonower.com -P https -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --interval 1 --last_days 31 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db -v
2025-08-17 23:56:02.909366
  port_id : 26044711
  datou_current_id : 3551276
in upload_from_sqlite, uploading in 26044711
in upload_photo_and_update_logs, uploading 6 files
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250817 ORDER BY id_local DESC LIMIT 6;
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
in upload media
 Upload medias :  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0
/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg
/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg
/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg
/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.087456703186035 secondes ---
after data_to_send, before sending request
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8a156da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 10 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:56:38.700055
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.120421171188354 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', 2), ('/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', 2), ('/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', 2), ('/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/00/12/image_17082025_00_13_04_9197.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_15_10257.jpg', '/mnt/data/17082025/00/13/image_17082025_00_13_25_10220.jpg', '/mnt/data/17082025/00/14/image_17082025_00_15_05_10354.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_35_10197.jpg', '/mnt/data/17082025/00/15/image_17082025_00_15_55_10232.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f8a2c1da0>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -o DESC -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 20 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:57:13.930773
in upload_from_sqlite, uploading in 26044711
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
uploaded 0 photos
time to upload: 30.087342739105225 secondes ---
debut du main YYYYYY
appel à la fonction d'upload
dans la fonction de sql
error upload
[('/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', 2), ('/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', 2), ('/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg', 2)]
port id,  26044711
XXXXXXXXXXXXXXXXXXXXXXX
comportement raspi
FILES,  ['/mnt/data/17082025/21/42/image_17082025_21_43_05_10370.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_55_10236.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_44_10200.jpg', '/mnt/data/17082025/21/42/image_17082025_21_42_34_10195.jpg', '/mnt/data/17082025/21/41/image_17082025_21_42_05_10760.jpg', '/mnt/data/17082025/21/41/image_17082025_21_41_54_8973.jpg']
batch 1
begin to post requests
HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=85213b338a7900a79945692114f14db2&datou_current_id=3551276&datou=0 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fa42c4eb8>, 'Connection to www.fotonower.com timed out. (connect timeout=30)'))
requests timeout
Result Failed!
MMMMMM fin de la fonction upload
Start to upload photos with parameters : -n jetson_test_aec_mm_0225 -P https -u www.fotonower.com -f /mnt/data -t 85213b338a7900a79945692114f14db2 --datou_id=533 --threshold=60 -j upload_by_sql_test --last_days 5 --interval 1 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:57:49.887494
in upload_from_sqlite, uploading in 26044711
